PowerShell: How to Uninstall a Feature from the Site Collection Features Site in SharePoint 2016

Sometimes you don’t need to use a web part on a site anymore, but you don’t want to completely remove it from the site collection. In this article, I’ll show you how to uninstall the Feature from Site Collection Features in just a few clicks.

First of all, make sure you have deactivated the feature.

Open SharePoint PowerShell and run it as administrator. Then run this script:


For example:


Click the Yes or Yes to All button.

Now, refresh your site to see the feature uninstalled as expected.