Partilhar via


TermSet.Delete Method

Deletes the current TermSet from the current Group object.

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

Syntax

'Declaration
Public Overrides Sub Delete
'Usage
Dim instance As TermSet

instance.Delete()
public override void Delete()

Exceptions

Exception Condition
UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

TermStoreOperationException

This operation is invalid in the Orphaned terms TermSet. The operation failed.

TermStoreOperationException

Deleting a system TermSet is disallowed.

Remarks

This method deletes the current TermSet object and all of its child Term objects. Any source Term members in the current TermSet object that are reused in other TermSet objects will be moved to the Orphaned TermSet. The Delete operation is not permitted on any system TermSet object such as the Keywords TermSet or the Orphaned TermSet. The current user must have TaxonomyRights.Edit permission to use this method. Call the CommitAll() method to save this change to the database.

See Also

Reference

TermSet Class

TermSet Members

Microsoft.SharePoint.Taxonomy Namespace