How do I delete a Route 53 hosted zone created by service discovery?

2 minute read
0

I'm trying to delete an Amazon Route 53 (Route 53) hosted zone created by service discovery in the AWS console. However, I'm receiving an error. How do I delete a Route 53 hosted zone created by service discovery?

Short description

Hosted zones that were created by service discovery can't be deleted from the Route 53 console. Hosted zones created by service discovery can be deleted only by using either the AWS Cloud Map console or a servicediscovery API call. Remember:

  • Before you can delete a namespace, you must delete all services that were created in the namespace.
  • Before you can delete a service, you must deregister all instances registered that were using the service.

Resolution

Find the namespace in AWS Cloud Map

  1. Open the AWS Cloud Map console.
  2. Choose the Region where the namespace was created from the Region selector in the navigation bar.
  3. In the navigation pane, choose Namespaces.
  4. Select the namespace associated with the hosted zone that you want to delete.

Remove all associated services

  1. Select a service name from the Services section.
  2. Select each instance in the Service instances list, and then choose Deregister.
  3. After you've deregistered all instances from the service, choose Delete at the top right of the service page to delete the service.

Repeat these steps for each associated service until all services are deleted.

Delete the namespace

  1. After all services are deleted, choose Delete at the top right of the namespace page to delete the namespace.
  2. Choose Delete in the confirmation window.

When you delete the namespace, the associated Route 53 hosted zone is automatically deleted.


AWS OFFICIAL
AWS OFFICIALUpdated 2 years ago