How to remove orphaned features
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() }
Comments
Post a Comment