Contents
From the above table we see ‘Web ID’ data is having all zeros that means it is a site scope feature. To clean up or remove missing feature “A6451363-A925-45F1-B256-DABBDBB28BCE” from site scope use below PowerShell commands. Clean up or remove missing web feature: From the above table we see ‘Web ID’ and ‘Site ID’ data so it is a web scrop feature.
After successful solution retraction, ran below PowerShell cmdlet to find out all missing feature references within content database. Test-SPContentDatabase -name SharePoint_Content_DB_01 -WebApplication https://SharePoint.poc.com/ | ? { $_.Category -eq “MissingFeature” }
How to remove a feature from a content DB?
This power shell code provide the option to remove missing features referenced on a content database migration log. Before migrating content Database you need to test the DB using the test-spcontentdatabase powershell command. If you encountered the error message bellow :
Can a missing feature cause an upgrade to fail?
The missing feature may cause upgrade to fail. Please install any solution which contains the feature and restart upgrade if necessary. We see many missing feature references within content database. Now we need to know the corresponding site or web information of these missing features to cleanup from site or web features collection.
How to remove orphaned features from SharePoint 2013 farm?
After using the tool to remove the orphaned features, I ran the script below to double check that all orphaned features were indeed removed. I was able to clean up the entire farm that contained 17 web applications in less than two hours.
As part of migration process we want to cleanup all unwanted SharePoint solution files from SharePoint farm. After successful solution retraction, ran below PowerShell cmdlet to find out all missing feature references within content database.
How to uninstall spfeature in Microsoft farm?
The Uninstall-SPFeature cmdlet removes the specified feature definition from the collection of feature definitions in the farm.