SP.FeatureCollection.remove(featureId, force) Method
Applies to: SharePoint Foundation 2010
Removes the feature with the specified ID from the collection.
SP.FeatureCollection.remove(featureId, force);
Parameters
- featureId
The ID of the feature to remove. It must not be null.
Type: SP.Guid
- force
Specifies whether to force the operation to continue even if there are errors. This parameter is ignored if there are no errors.
Type: Boolean
Applies To
Exceptions
- InvalidOperationException
The feature is not an activated feature or the feature cannot be deactivated and the force parameter was not set to true. Error code: -1.
- UnauthorizedAccessException
The current user has insufficient permissions. Error code: -2147024891.