SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to remove all custom sharepoint 2010 features from my farm:

The scritp below gets them, but doesn't remove them. How should this be modified to remove them?

$url = "Your site URL here"

$site= new-Object Microsoft.SharePoint.SPSite($url)

| where-object {$_.solutionid -ne '00000000-0000-0000-0000-000000000000'} 
| Sort-Object solutionid,displayname 
| ft -property solutionid,displayname,scope -auto > features.txt


Adding | $_.Remove() in place of > features.txt causes a compilation error.

share|improve this question

Hopefully all your features has been installed through Solution packages to it would be better to retract these and the remove them.

But it may cause a lot of things not to work anymore.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.