







Deactivatefeature: Stsadm operation (Office SharePoint Server) | |
![]() ![]() |
Stsadm command-line tool (Office SharePoint Server) > Stsadm operations (Office SharePoint Server) > Features and solutions: Stsadm operations (Office SharePoint Server) > |
This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.
Operation name: Deactivatefeature
Description
Deactivates a feature in the feature collection.
Syntax
stsadm -o deactivatefeature
-filename
-name <feature folder>
-id <feature ID>
[-url] <URL name>
[-force]
Parameters
Parameter |
Value |
Required? |
Description | ||
filename |
A valid file path, such as "MyFeature\Feature.xml" |
Yes |
Path to feature must be a relative path to the 12\Template\Features directory. Can be any standard character that the Windows system supports for a file name.
| ||
name |
Name of the feature directory, such as “MyFeature” |
Yes |
Name of the feature to deactivate | ||
id |
A valid GUID, such as “21d186e1-7036-4092-a825-0eb6709e9281” |
Yes |
GUID that identifies the feature definition to remove
| ||
url |
A valid URL, such as http://server_name |
Yes |
URL of the site collection or Web site to which the feature is being deactivated | ||
force |
<none> |
No |
Specifies that a deactivation of the feature will be forced. |