All Products
Document Center

Batch Compute:deleteCluster

Last Updated:May 11, 2018

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

  1. try{
  2. DeleteClusterResponse response = client.deleteCluster("cls-0101010299123");
  3. //The method is successfully called.
  4. }catch(ClientException e){
  5. e.printStackTrace();
  6. //The method fails to be called.
  7. }