Share via


ZonesOperationsExtensions.DeleteAsync Method

Definition

Deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be undone.

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

Parameters

operations
IZonesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

zoneName
String

The name of the DNS zone (without a terminating dot).

ifMatch
String

The etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to