This page shows you how to use an inline Google APIs 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 beginThis quickstarts assumes you have already created a Cloud Dataproc cluster. You can use the APIs 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 APIs Explorer template, below, as follows:
- Enter you project ID (project name) in the
The filled-in template specifies:
region= "us-central1". If you created your cluster (see APIs Explorer—Create a cluster) in a different region, replace "us-central1" with the name of your cluster's region.
clusterName= "example-cluster". This is the name of the Cloud Dataproc cluster (created in the previous quickstarts—see APIs Explorer—Create a cluster) that will be deleted. Replace this name with the name of your cluster if it is different.
Click EXECUTE. A dialog will ask you to confirm the default
https://www.googleapis.com/auth/cloud-platformscope. 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 APIs Explorer to delete a Cloud Dataproc cluster.