AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the DeleteCluster operation.
Deletes the specified cluster. The cluster transitions to the INACTIVE
state.
Clusters with an INACTIVE
status might remain discoverable in your account
for a period of time. However, this behavior is subject to change in the future. We
don't recommend that you 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 ListContainerInstances and deregister them with DeregisterContainerInstance.
Namespace: Amazon.ECS.Model
Assembly: AWSSDK.ECS.dll
Version: 3.x.y.z
public class DeleteClusterRequest : AmazonECSRequest IAmazonWebServiceRequest
The DeleteClusterRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
DeleteClusterRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
Cluster | System.String |
Gets and sets the property Cluster. The short name or full Amazon Resource Name (ARN) of the cluster to delete. |
This example deletes an empty cluster in your default region.
var client = new AmazonECSClient(); var response = client.DeleteCluster(new DeleteClusterRequest { Cluster = "my_cluster" }); Cluster cluster = response.Cluster;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5