Delete a Cluster on Google Cloud Platform

DELETE /api/v2/clusters/<cluster ID>

Use this API to delete a specific cluster.

Required Role

The following users can make this API call:

  • Users who belong to the system-admin or system-user group.
  • Users who belong to a group associated with a role that allows creating a cluster. See Managing Groups and Managing Roles for more information.

Parameters

None

Request API Syntax

curl -X DELETE -H "X-AUTH-TOKEN:$X_AUTH_TOKEN" -H "Content-Type:application/json" -H "Accept: application/json" \
"https://gcp.qubole.com/api/v2/clusters/<cluster-ID>"

Sample API Request

Here is a sample request to delete the cluster that has 301 as its ID.

curl -X DELETE -H "X-AUTH-TOKEN:$X_AUTH_TOKEN" -H "Content-Type:application/json" -H "Accept: application/json" \
"https://gcp.qubole.com/api/v2/clusters/301"