6 November 2012

Remove/Uninstall Feature in SharePoint 2010

Sometime we require to remove/ uninstall the unwanted feature previously added by us. Its little bit tricky. but not Impossible.
For this you require to get the Id of the feature.

1.  Open the -> "SharePoint 2010 Management Shell"

2. Use the command "GET-SPFeature"



3. Scroll down and find the feature you what to remove. Get the Id of that feature.
  Let consider I want to remove the feature named as "VisualWebPartWatch_Feature1"
  with Id "a463dd22-7c4c-4b17-9a46-eb8f1be1a716".

4. Now use the following cmd "stsadm.exe -o uninstallfeature -id id of the feature got in step3"

5.  Remember feature should be deactivate to uninstall it. Or you have to use the "-force" keyword
  after giving the Id of the feature got in step 3.


6. Now its done. Happy Coding. :)

1 comment:

  1. Thanks buddy
    Its really useful and this is what I was looking since 1 day.

    ReplyDelete