API Explorer Quickstart—Delete a cluster

This page shows you how to use an inline Google API Explorer template to delete Cloud Dataproc cluster. You can learn how to do the same task using the Google Cloud Platform Console in Quickstart Using the Console or using the command line in Quickstart using the gcloud command-line tool.

Before you begin

This quickstarts assumes you have already created a Cloud Dataproc cluster. You can use the API Explorer, the Google Cloud Platform Console, or the Cloud SDK gcloud command-line tool to create a cluster.

Delete a cluster

To delete a cluster, fill in the API Explorer template, below, as follows:

  1. Enter you project ID (project name) in the projectID field.
  2. The filled-in template specifies:

    1. region = "global". global is the default region when a Cloud Dataproc cluster is created. This is a special multi-region namespace that is capable of deploying instances into all Compute Engine zones globally when a Cloud Dataproc cluster is created. If you created your cluster (see API Explorer—Create a cluster) in a different region, replace "global" with the name of your cluster's region.
    2. clusterName = "example-cluster". This is the name of the Cloud Dataproc cluster (created in the previous quickstarts—see API Explorer—Create a cluster) that will be deleted. Replace this name with the name of your cluster if it is different.
  3. Click EXECUTE. A dialog will ask you to confirm the default https://www.googleapis.com/auth/cloud-platform scope. Click the dialog's ALLOW to send the request to the service. After less than one second (typically), the JSON response showing that the example-cluster is pending appears below the template.

You can confirm that the cluster is being deleted by going to GCP Console—Clusters.

Congratulations! You've used the Google API Explorer to delete a Cloud Dataproc cluster.

What's next

Send feedback about...

Google Cloud Dataproc Documentation