Deletes the specified 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. However, this
behavior is subject to change in the future, so you should not rely on
INACTIVE clusters persisting.
You must deregister all container instances from this cluster before you
may delete it. You can list the container instances in a cluster with
list_container_instances and
deregister them with
deregister_container_instance.
ecs_delete_cluster(cluster)A list with the following syntax:
list(
cluster = list(
clusterArn = "string",
clusterName = "string",
status = "string",
registeredContainerInstancesCount = 123,
runningTasksCount = 123,
pendingTasksCount = 123,
activeServicesCount = 123,
statistics = list(
list(
name = "string",
value = "string"
)
),
tags = list(
list(
key = "string",
value = "string"
)
),
settings = list(
list(
name = "containerInsights",
value = "string"
)
),
capacityProviders = list(
"string"
),
defaultCapacityProviderStrategy = list(
list(
capacityProvider = "string",
weight = 123,
base = 123
)
),
attachments = list(
list(
id = "string",
type = "string",
status = "string",
details = list(
list(
name = "string",
value = "string"
)
)
)
),
attachmentsStatus = "string"
)
)
[required] The short name or full Amazon Resource Name (ARN) of the cluster to delete.
svc$delete_cluster(
cluster = "string"
)
if (FALSE) {
# This example deletes an empty cluster in your default region.
svc$delete_cluster(
cluster = "my_cluster"
)
}
Run the code above in your browser using DataLab