Deleting a public hosted zone - Amazon Route 53
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Deleting a public hosted zone

This section explains how to delete a public hosted zone using the Amazon Route 53 console.

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.

Preventing traffic from being routed to your domain

If you want to keep your domain registration but you want to stop routing internet traffic to your website or web application, we recommend that you delete records in the hosted zone instead of deleting the hosted zone.

Important

If you delete a hosted zone, you can't undelete it. You must create a new hosted zone and update the name servers for your domain registration, which can require up to 48 hours to take effect. In addition, if you delete a hosted zone, someone could hijack the domain and route traffic to their own resources using your domain name.

If you delegated responsibility for a subdomain to a hosted zone and you want to delete the child hosted zone, you must also update the parent hosted zone by deleting the NS record that has the same name as the child hosted zone. For example, if you want to delete the hosted zone acme.example.com, you must also delete the NS record acme.example.com in the example.com hosted zone. We recommend that you delete the NS record first, and wait for the duration of the TTL on the NS record before you delete the child hosted zone. This ensures that someone can't hijack the child hosted zone during the period that DNS resolvers still have the name servers for the child hosted zone cached.

If you want to avoid the monthly charge for the hosted zone, you can transfer DNS service for the domain to a free DNS service. When you transfer DNS service, you have to update the name servers for the domain registration. 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 registration. For more information, perform an internet search on "free DNS service."

Deleting public hosted zones that were created by another service

If a hosted zone was created by another service, you can't delete it using the Route 53 console. Instead, you need to use the applicable process for the other service:

  • Amazon Cloud Map – To delete a hosted zone that Amazon Cloud Map created when you created a public DNS namespace, delete the namespace. Amazon Cloud Map deletes the hosted zone automatically. For more information, see Deleting namespaces in the Amazon Cloud Map Developer Guide.

  • Amazon Elastic Container Service (Amazon ECS) Service Discovery – To delete a public hosted zone that Amazon ECS created when you created a service using service discovery, delete the Amazon ECS services that are using the namespace, and delete the namespace. For more information, see Deleting a service in the Amazon Elastic Container Service Developer Guide.

Using the Route 53 console to delete a public hosted zone

To use the Route 53 console to delete a public hosted zone, perform the following procedure.

To delete a public hosted zone using the Route 53 console
  1. Sign in to the Amazon Web Services Management Console and open the Route 53 console at https://console.amazonaws.cn/route53/.

  2. In the navigation pane, choose Hosted zones, and choose the highlighted link for the hosted zone you want to delete.

  3. 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. You will also need to disable DNSSEC signing:

    1. On the hosted zone detail page, in the Records list, 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.

      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.

  4. Go back to the the Hosted zones page, and choose the row for the hosted zone that you want to delete.

  5. Choose Delete.

  6. Type the confirmation key and choose Delete.

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