Tentukan region
tempat cluster Anda berada (konfirmasi atau ganti "us-central1").
Region cluster Anda tercantum di halaman Clusters Dataproc di konsol Google Cloud .
Tentukan
clusterName
cluster yang ada yang Anda hapus (konfirmasi atau ganti
"example-cluster").
Klik EXECUTE. Saat pertama kali
menjalankan template API, Anda mungkin diminta untuk memilih dan login ke
Akun Google Anda, lalu memberi otorisasi Google APIs Explorer untuk mengakses akun
Anda. Jika permintaan berhasil, respons JSON akan menunjukkan bahwa update cluster tertunda.
Untuk mengonfirmasi bahwa cluster sedang dihapus, buka halaman Clusters Dataproc di Google Cloud console.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-22 UTC."],[[["\u003cp\u003eThis page demonstrates how to delete a Dataproc cluster using a Google APIs Explorer template.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a cluster requires specifying the project ID, region, and cluster name in the APIs Explorer template.\u003c/p\u003e\n"],["\u003cp\u003ePrior to deletion, it's assumed that a Dataproc cluster has already been created using one of the various available methods.\u003c/p\u003e\n"],["\u003cp\u003eAfter executing the delete request in the API template, you can confirm the cluster's deletion status on the Dataproc Clusters page in the Google Cloud console.\u003c/p\u003e\n"]]],[],null,["APIs Explorer Quickstart---Delete a cluster This page shows you how to use an [Google APIs Explorer](https://developers.google.com/apis-explorer/#p/) template to delete a Dataproc cluster.\n\nFor other ways to submit a job to a Dataproc cluster, see:\n\n- [Quickstart Using the Console](/dataproc/docs/quickstarts/update-cluster-console#clean-up)\n- [Quickstart using the Google Cloud CLI](/dataproc/docs/quickstarts/update-cluster-gcloud#clean-up)\n- [Quickstarts using Cloud Client Libraries](/dataproc/docs/quickstarts/create-cluster-client-libraries)\n\nBefore you begin This quickstart assumes you have already created a Dataproc cluster. You can use the [APIs Explorer](/dataproc/docs/quickstarts/create-cluster-template), the [Google Cloud console](/dataproc/docs/quickstarts/update-cluster-console#create_a_cluster), the gcloud CLI [gcloud](/dataproc/docs/quickstarts/update-cluster-gcloud#create_a_cluster) command-line tool, or the [Quickstarts using Cloud Client Libraries](/dataproc/docs/quickstarts/create-cluster-client-libraries) to create a cluster.\n\n\u003cbr /\u003e\n\nDelete a cluster\n\nTo delete a cluster, fill in and execute the Google APIs Explorer **Try this API**\ntemplate.\n| **Note:** The `region` and `clusterName` parameter values are filled in for you. Confirm or replace these parameter values to match your cluster's region and name.\n\n1. **Request parameters:**\n\n 1. Insert your [**projectId**](https://console.cloud.google.com/).\n 2. Specify the [**region**](/compute/docs/regions-zones/regions-zones#available) where your cluster is located (confirm or replace \"us-central1\"). Your cluster's region is listed on the Dataproc [**Clusters**](https://console.cloud.google.com/dataproc/clusters) page in the Google Cloud console.\n 3. Specify the [**clusterName**](/dataproc/docs/reference/rest/v1/projects.regions.clusters/delete#body.PATH_PARAMETERS.cluster_name) of the existing cluster that you are deleting (confirm or replace \"example-cluster\").\n2. Click **EXECUTE**. The first time you\n run the API template, you may be asked to choose and sign into\n your Google account, then authorize the Google APIs Explorer to access your\n account. If the request is successful, the JSON response\n shows that cluster update is pending.\n\n3. To confirm that the cluster is being deleted, open the Dataproc\n [Clusters](https://console.cloud.google.com/dataproc/clusters) page in the Google Cloud console.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nWhat's next\n\n- Browse the [Dataproc tutorials](/dataproc/docs/tutorials)."]]