Delete a Cluster

DELETE /api/v1.3/clusters/(string: id_or_label)

Use this API to delete a specific cluster by calling its ID or label.

Note

The cluster that has the label as ‘default’ cannot be deleted. Hence, there is always at least one cluster in an account.

Required Role

The following users can make this API call:

  • Users who belong to the system-admin group.

  • Users who belong to a group associated with a role that allows deleting a cluster. See Managing Groups and Managing Roles for more information.

Examples

Goal

Delete a cluster.

curl -X DELETE
-H "X-AUTH-TOKEN:$AUTH_TOKEN"
-H "Content-Type: application/json" -H "Accept: application/json" \
https://api.qubole.com/api/v1.3/clusters/1710

Note

The above syntax uses https://api.qubole.com as the endpoint. Qubole provides other endpoints to access QDS that are described in Supported Qubole Endpoints on Different Cloud Providers.

Response

Returns a message with the status of the delete operation.

{“message”:”Successfully deleted cluster with id 1710.”}