Monday, September 8, 2008

How To: Remove a feature from a SharePoint site

To remove a site feature from a SharePoint site perform the following steps:

  1. Make sure that *ALL* lists referencing the template/feature have been deleted from the site
  2. In a command window, run the following:
    stsadm -o deactivatefeature -name "[name]" -url [url]
  3. Run the following statement:
    stsadm -o uninstallfeature -name "[name]" -force
  4. In Central Admin -> Operations -> Solution Management
    1. Select the .wsp file of the feature to be removed and click "Retract Solution", then click "OK"
    2. After the solution has been retracted, select the .wsp file again and click "Remove Solution"
  5. To completely remove the project from the server, delete the folder containing the feature:
    (program files\common files\Microsoft Shared\web server extensions\12\templates\features\[feature name])

1 comment:

Tee Chess said...

Thank you so much for posting all the steps to carry out this complex task. Now it will be easy for me to remove a feature.
electronic signature for sharepoint