SPFeatureDefinition.Delete method
Removes the SPFeature object from the collection and the server farm.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overrides Sub Delete
'Usage
Dim instance As SPFeatureDefinition
instance.Delete()
public override void Delete()
Remarks
Changing a site definition after it has already been deployed can break existing sites and is not supported. If you find that you must modify a site definition after it has already been deployed, keep in mind that adding features can cause fewer problems than changing or deleting them. Changing features often results in loss of data and deleting them often results in broken views.
See also
Reference
Microsoft.SharePoint.Administration namespace
Other resources
Configuration Element (Site)
Feature/Site Template Association
Installing or Uninstalling Features