Deletes a cluster.
Operation description
When you delete a cluster, you can use the RetainResources parameter. The default is false. Setting this parameter to true retains the ENS compute instances that host the worker nodes.
Deleting a cluster also deletes all its nodes and node pools. However, ENS compute instances attached using a script from the DescribeAttachScript operation are retained.
If a node pool in the cluster is scaling out or in, wait for the operation to complete before you delete the cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DeleteCluster |
delete |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the cluster to delete. |
eck-xxxxxxxx |
| RetainResources |
boolean |
No |
Indicates whether to retain the associated cloud resources. The default is |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
| ClusterId |
string |
The cluster ID. |
eck-xxxxxxxx |
Examples
Success response
JSON format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
"ClusterId": "eck-xxxxxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.