To delete a cluster, the cluster must not be running any tasks:
- Select all running tasks and click on
Stop
, as shown in the following screenshot. Alternatively, selectStop All
, without selecting any tasks:
- In the
Stop tasks
confirmation dialog, click onStop
. The tasks get stopped, as indicated by the messageStopped tasks successfully
. - Click on
Delete Cluster
to delete the cluster:
- In the
Delete Cluster
confirmation dialog, click onDelete
. The hello-world cluster gets deleted. If theCoudFormation
stack associated with the cluster times out before the cluster gets deleted, an error message gets displayed, as shown in the following screenshot, and the cluster does not get deleted. If theCloudFormation
stack does not get deleted automatically when the ECS cluster is chosen to be deleted, click on theView CloudFormation Stack
link in the error message:
- In the
CloudFormation
|Stacks
dashboard, selectCloudFormation
, and click onActions
|Delete Stack
, as shown in the following...