Deleting a cluster using the console
If you are finished using a cluster, you can delete it. After you delete the cluster, it
transitions to the INACTIVE
state. Clusters with an INACTIVE
status may remain discoverable in your account for a period of time. However, this behavior
is subject to change in the future, so you should not rely on INACTIVE
clusters
persisting.
Before you delete a cluster, you must perform the following operations:
-
Delete all services in the cluster. For more information, see Deleting a service using the console.
-
Stop all currently running tasks. For more information, see Stop an Amazon ECS task.
-
Deregister all registered container instances in the cluster. For more information, see Deregister an Amazon EC2 backed container instance.
-
Delete the namespace. For more information, see Deleting namespaces in the Amazon Cloud Map Developer Guide.
To delete a cluster (Amazon ECS console)
Open the console at https://console.amazonaws.cn/ecs/v2
. -
From the navigation bar, select the Region to use.
-
In the navigation pane, choose Clusters.
-
On the Clusters page, select the cluster to delete.
-
In the upper-right of the page, choose Delete Cluster.
A message is displayed when you did not delete all the resources associated with the cluster.
-
In the confirmation box, enter delete
cluster name
.