Posts

Showing posts from November, 2014

How to remove orphaned features

Image
How to remove orphaned features   Get - SPFeature | ? { $_ . Scope - eq $null } This will give you a complete list of orphaned features.   $feature = Get - SPFeature | ? { $_ . DisplayName - eq "My_Orphane_Feature" } $feature . Delete () You can even use this code to clean all the orphaned features: Get - SPFeature | ? { ! $_ . Scope } | % { $_ . Delete () }