Wednesday, 27 August 2014

How to find and delete orphaned features in SharePoint using PowerShell

Use the following script to list all the features
   Get-SPFeature | ? { $_.Scope -eq $null }


Then use this script to delete the feature
    $feature = Get-SPFeature | ? { $_.DisplayName -eq "FeatureName" }
    $feature.Delete()

No comments:

Post a Comment