Method description
Deletes a cluster by specifying the cluster ID.
Note: It is an asynchronous API. After the API is successfully called, the cluster state changes to Deleting, indicating that the cluster is being deleted and it takes some time to completely delete the cluster.
Parameter description
Parameter | Type | Description |
---|---|---|
clusterId | String | Cluster ID |
Response description
If the call succeeds, a DeleteClusterResponse instance is returned.
If the call fails, a ClientException is thrown.
Sample code
try{
DeleteClusterResponse response = client.deleteCluster("cls-0101010299123");
//The method is successfully called.
}catch(ClientException e){
e.printStackTrace();
//The method fails to be called.
}