How do I delete or terminate an Amazon ECS service?

1 minute read
0

I want to use the Amazon Elastic Container Service (Amazon ECS) console to delete or terminate an Amazon ECS service.

Resolution

To delete an Amazon ECS service, complete the following steps:

Note: These steps apply to the new Amazon ECS console.

  1. Open the Amazon ECS console.
  2. In the navigation pane, choose Clusters.
  3. On the Clusters page, select the cluster for the service.
  4. On the cluster detail page, choose the Services tab.
  5. Select the service, and then choose Delete.
  6. When prompted, enter delete me. Then, choose Delete.
    Note: Before you can delete the service, you must scale it down to zero. Or, choose the Force delete service option.

Important: Elastic Load Balancing or service discovery resources that are associated with the service aren't affected by the service deletion. To delete your Elastic Load Balancing resources, see Delete an Application Load Balancer or Delete a Network Load Balancer.

Related information

Why is the Amazon ECS container instance that I terminated still registered with its cluster?

AWS OFFICIAL
AWS OFFICIALUpdated 5 months ago
2 Comments

The service does not automatically scale to 0. It is necessary to select the "Force" checkbox (which states that selecting it will scale the service to 0). It is not clear why the checkbox exists because it is impossible to delete the service unless that box is checked.

Jiminy
replied a year ago

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

profile pictureAWS
MODERATOR
replied a year ago