This page shows you how to use an inline Google APIs Explorer template to delete Dataproc cluster. You can learn how to do the same task using the Google Cloud Console in Quickstart Using the Console, using the command line in Quickstart using the gcloud command-line tool, and using the Client Libraries in Quickstart using Google Cloud Client Libraries.
Before you beginThis quickstarts assumes you have already created a Dataproc cluster. You can use the APIs Explorer, the Google Cloud 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 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 Cloud Console—Clusters.
Congratulations! You've used the Google APIs Explorer to delete a Dataproc cluster.
- Learn how to write and run a Scala job.