APIs Explorer Quickstart—Delete a cluster

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 begin

This 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:

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

    1. 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.
    2. 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.
  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 APIs Explorer to delete a Cloud Dataproc cluster.

What's next

Oliko tästä sivusta apua? Kerro mielipiteesi

Palautteen aihe:

Tämä sivu
Cloud Dataproc Documentation
Tarvitsetko apua? Siirry tukisivullemme.