How to delete an empty ECS cluster using AWS CLI

0 votes

Hi Team,

I have created one ECS cluster in AWS. Now I don't need this cluster. How can I delete the cluster?

Nov 8, 2020 in AWS by akhtar
• 38,260 points
1,977 views

1 answer to this question.

0 votes

Hi@akhtar,

You can delete the specified ECS cluster. The cluster will transition to the INACTIVE state. Clusters with an INACTIVE status may remain discoverable in your account for a period of time. The following delete-cluster example deletes the specified empty cluster.

$ aws ecs delete-cluster --cluster MyCluster
answered Nov 8, 2020 by MD
• 95,460 points

Related Questions In AWS

+1 vote
2 answers

How to launch and access an instance using AWS-CLI?

aws ec2 run-instances --image-id ami-id --key-name yourkeyname ...READ MORE

answered Feb 23, 2019 in AWS by Shashank
• 1,370 points
1,871 views
0 votes
1 answer

How to create a redshift cluster using AWS CLI?

You can create your cluster using AWS ...READ MORE

answered Feb 25, 2019 in AWS by Priyaj
• 58,100 points
1,219 views
0 votes
1 answer

How to create EMR cluster using AWS CLI?

The command to create EMR cluster using ...READ MORE

answered Feb 27, 2019 in AWS by Priyaj
• 58,100 points
1,947 views
0 votes
1 answer

How to delete a Lambda function using AWS CLI?

Hi@akhtar, You can delete a Lambda function. To ...READ MORE

answered Nov 5, 2020 in AWS by MD
• 95,460 points
2,448 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to create an ECS cluster using AWS CLI?

Hi@akhtar, You can create a new Amazon ECS cluster. ...READ MORE

answered Nov 8, 2020 in AWS by MD
• 95,460 points
887 views
0 votes
1 answer

How to delete an IAM user using AWS CLI?

Hi@akhtar, You can delete the specified IAM user. ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,460 points
1,812 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP