Menu
Amazon Route 53
Developer Guide (API Version 2013-04-01)

Deleting a Public Hosted Zone

The following procedure explains how to delete a hosted zone using the Amazon Route 53 console. For information about how to delete a hosted zone using the Route 53 API, see DeleteHostedZone in the Amazon Route 53 API Reference.

Important

If the name servers for the hosted zone are associated with a domain and if you want to make the domain unavailable on the internet, we recommend that you transfer DNS service to a free DNS service and then delete the Route 53 hosted zone. This prevents future DNS queries from possibly being misrouted. If the domain is registered with Route 53, see Adding or Changing Name Servers and Glue Records for a Domain for information about how to replace Route 53 name servers with name servers for the new DNS service. If the domain is registered with another registrar, use the method provided by the registrar to update name servers for the domain. For more information, perform an internet search on "free DNS service."

You can delete a hosted zone only if there are no records other than the default SOA and NS records. If your hosted zone contains other records, you must delete them before you can delete your hosted zone. This prevents you from accidentally deleting a hosted zone that still contains records.

To delete a public hosted zone using the Route 53 console

  1. Sign in to the AWS Management Console and open the Route 53 console at https://console.aws.amazon.com/route53/.

  2. Confirm that the hosted zone that you want to delete contains only an NS and an SOA record. If it contains additional records, delete them:

    1. Choose the name of the hosted zone that you want to delete.

    2. On the Record Sets page, if the list of records includes any records for which the value of the Type column is something other than NS or SOA, choose the row, and choose Delete Record Set.

      To select multiple, consecutive records, choose the first row, press and hold the Shift key, and choose the last row. To select multiple, non-consecutive records, choose the first row, press and hold the Ctrl key, and choose the remaining rows.

      Note

      If you created any NS records for subdomains in the hosted zone, delete those records, too.

    3. Choose Back to Hosted Zones.

  3. On the Hosted Zones page, choose the row for the hosted zone that you want to delete.

  4. Choose Delete Hosted Zone.

  5. Choose OK to confirm.

  6. If you want to make the domain unavailable on the internet, we recommend that you transfer DNS service to a free DNS service and then delete the Route 53 hosted zone. This prevents future DNS queries from possibly being misrouted.

    If the domain is registered with Route 53, see Adding or Changing Name Servers and Glue Records for a Domain for information about how to replace Route 53 name servers with name servers for the new DNS service. If the domain is registered with another registrar, use the method provided by the registrar to change name servers for the domain.

    Note

    If you're deleting a hosted zone for a subdomain (acme.example.com), you don't need to change name servers for the domain (example.com).