Term.Delete Term.Delete Term.Delete Method

Definition

Deletes this Term object and its descendents from the TermStore object.

public:
 override void Delete();
[Microsoft.SharePoint.Client.ClientCallable(ClientLibraryTargets=Microsoft.SharePoint.Client.ClientLibraryTargets.NonRESTful, Name="DeleteObject")]
public override void Delete ();
Public Overrides Sub Delete ()
Exceptions

The current user has insufficient permissions to perform this operation.

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

Remarks

Deleting a source Term when it is still reused elsewhere will move the source term to the orphaned TermSet object, and the Term becomes an orphan. Orphan terms cannot be deleted directly. When all reused term objects are deleted, the orphan is automatically deleted.

Use of this method requires TaxonomyRights.EditTerm permissions. Call the CommitAll() method to save this change to the database.

Applies to