Uninstallfeature: Stsadm operation (Office SharePoint Server)

Updated: April 26, 2007

Applies To: Office SharePoint Server 2007

Updated: 2007-04-26

Operation name: Uninstallfeature

Removes the specified feature definition from the collection of feature definitions in the farm.

Syntax

stsadm -o uninstallfeature

   -filename <file name>

   -name <feature folder>

   -id <feature ID>

   [-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.

Note Note:

If the feature file is not found on disk, the following error message is displayed: "Failed to find the XML file at location '12\Template\Features\<file path>'."

name

Name of the feature directory, such as “MyFeature”

Yes

Name of the feature folder located in the 12\Template\Features folder

id

A valid GUID, such as “21d186e1-7036-4092-a825-0eb6709e9281”

Yes

GUID that identifies the feature definition to remove

Note Note:

If the ID is specified but the feature does not exist, the following error message is displayed: "Feature with Id '<id>' is not installed in this farm. The feature was not uninstalled."

force

<none>

No

Forces the feature to be uninstalled.

Community Content Add
Annotations FAQ
Confusing

The filename, name, and id all have required as Yes.

They are not all required. Only one of them is required.