All Products
Search
Document Center

delete_cluster

Last Updated: May 14, 2018

Parameter description

Parameter Type Description
cluster CreateResponse object, str, dict Cluster ID

Response description

The delete_cluster method returns an ActionResponse object. ActionResponse provides only two attributes: request ID and status code.

Example

  1. try:
  2. # Get a Client object.
  3. client = Client(...
  4. ...
  5. # Cluster ID.
  6. cluster = "cls-xxxx"
  7. client.delete_cluster(cluster)
  8. except ClientError, e:
  9. print(e)