TagsOperationsExtensions.DeleteAsync Method

Definition

Deletes a predefined tag name.

public static System.Threading.Tasks.Task DeleteAsync (this Microsoft.Azure.Management.ResourceManager.ITagsOperations operations, string tagName, System.Threading.CancellationToken cancellationToken = default);
static member DeleteAsync : Microsoft.Azure.Management.ResourceManager.ITagsOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function DeleteAsync (operations As ITagsOperations, tagName As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
ITagsOperations

The operations group for this extension method.

tagName
String

The name of the tag.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

This operation allows deleting a name from the list of predefined tag names for the given subscription. The name being deleted must not be in use as a tag name for any resource. All predefined values for the given name must have already been deleted.

Applies to