All Products
Document Center


Last Updated: May 11, 2018

Method description

Deletes a cluster instance.

Parameter description

Parameter Type Description
clusterId String Cluster ID
groupName String Name of an instance group
id String Cluster instance ID

Response description

  • If creation succeeds, a DeleteClusterInstanceResponse instance is returned.

  • If creation fails, a ClientException is thrown.

Sample code

  1. try{
  2. String clusterId = "cls-6vilcufsfd31i010";
  3. String groupName = "group1";
  4. String id = "ins-xxxxxxxx";
  5. DeleteClusterInstanceResponse response = client.deleteClusterInstance(clusterId,groupName,id);
  6. //The deletion request is accepted.
  7. }catch(ClientException e){
  8. e.printStackTrace();
  9. //Deletion failed
  10. }

Note: This is an asynchronous API. After deletion, DesiredVMCount of the related group decreases by 1.