Share via


RecordSetsOperationsExtensions.Delete Method

Definition

Deletes a record set from a DNS zone. This operation cannot be undone.

public static void Delete (this Microsoft.Azure.Management.Dns.IRecordSetsOperations operations, string resourceGroupName, string zoneName, string relativeRecordSetName, Microsoft.Azure.Management.Dns.Models.RecordType recordType, string ifMatch = default);
static member Delete : Microsoft.Azure.Management.Dns.IRecordSetsOperations * string * string * string * Microsoft.Azure.Management.Dns.Models.RecordType * string -> unit
<Extension()>
Public Sub Delete (operations As IRecordSetsOperations, resourceGroupName As String, zoneName As String, relativeRecordSetName As String, recordType As RecordType, Optional ifMatch As String = Nothing)

Parameters

operations
IRecordSetsOperations

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).

relativeRecordSetName
String

The name of the record set, relative to the name of the zone.

recordType
RecordType

The type of DNS record in this record set. Record sets of type SOA cannot be deleted (they are deleted when the DNS zone is deleted). Possible values include: 'A', 'AAAA', 'CAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT'

ifMatch
String

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

Applies to