Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (5.6k points)

I tried deleting Private Hosted Zone but was unable to do, I tried using the console as well as CLI.

I tried using these commands:

aws servicediscovery list-services

aws servicediscovery delete-service --id=ID-FROM-LIST

aws servicediscovery delete-namespace --id=NS-LIST

Still not able to delete it. Any solution?

1 Answer

0 votes
by (12.4k points)

First, delete the AWS ECS service from the console, and if you have any service like namespace then delete them by using these commands:

aws servicediscovery list-services --region <region_name>

aws servicediscovery list-namespaces --region <region_name>

aws servicediscovery delete-namespace --id <service_discovery_namespace_id> --region <region_name>

For more, you can refer here.

Want to learn more about AWS, Come & join: AWS Training

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
asked Apr 9, 2020 in AWS by Amenda (1.4k points)
0 votes
1 answer

Browse Categories

...