Delete a Resource Record

Applies To: Windows Server 2008

You can use the following procedure to delete a resource record from a Domain Name System (DNS) zone. Resource records remain in a zone until you delete them or they are removed by one of the following:

  • A pointer (PTR) resource record is deleted automatically if the corresponding host (A) resource record is deleted. For more information, see Providing Reverse Lookup for more information.

  • A host (A or AAAA) resource record is deleted automatically if the host that had dynamically registered the resource record deregisters the same record. For more information, see Managing Dynamic Update for a Zone.

  • A resource record is deleted automatically by aging and scavenging. See Managing Aging and Scavenging.

You can perform this procedure by using the DNS Manager snap-in or by using the Dnscmd command-line tool.

Membership in Administrators on the local computer, or equivalent, is the minimum required to complete this procedure. Review details about using the appropriate accounts and group memberships at Local and Domain Default Groups (

If the computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure.

Deleting a resource record

  • Using the Windows interface

  • Using a command line

To delete a resource record using the Windows interface

  1. Open DNS Manager. To open DNS Manager, click Start, point to Administrative Tools, and then click DNS.

  2. In the console tree, click the applicable zone.

  3. In the details pane, right-click the resource record that you want to delete, and then click Delete.

  4. When you are asked to confirm that you want to delete the selected resource record, click OK.

To delete a resource record using a command line

  1. Open a command prompt. To open an elevated Command Prompt window, click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.

  2. Type the following command, and then press ENTER:

    dnscmd <ServerName> /RecordDelete <ZoneName> <NodeName> <RRType> <RRData> [/f]
Value Description


Required. Specifies the DNS host name of the DNS server. You can also type the IP address of the DNS server. To specify the DNS server on the local computer, you can also type a period (.).


Required. Deletes a resource record.


Required. Specifies the fully qualified domain name (FQDN) of the zone.


Required. Specifies the FQDN of the node in the DNS namespace. You can also type the node name relative to the ZoneName or @, which specifies the zone's root node.

<RRType> <RRData>

Required. Specifies the type of resource record to delete, followed by the data contained in the resource record. The following lists resource record types and the data that the resource record of each type contains.






<Preference> <ServerName>


<Priority> <Weight> <Port> <HostName>


<PrimSvr> <Admin> <Serial#> <Refresh> <Retry> <Expire> <MinTTL>




<String> [<String>]


<MailboxName> <ErrMailboxName>


<Protocol>< IPAddress> <Service>...


<MapFlag> <LookupTimeout> <CacheTimeout> <IPAddress>...


<MapFlag> <LookupTimeout> <CacheTimeout> <RstDomainName>


Specifies that the command is executed without asking for confirmation. If you omit this parameter, you are prompted to confirm the deletion of the resource record.


If the parameter RRData is not specified, all resource records of the same type are deleted.