This page explains how to update and delete an existing Cloud Dataproc cluster.
Updating a cluster
You can update a cluster by issuing a Cloud Dataproc API clusters.patch request, running a gcloud dataproc clusters update command in a local terminal window or in Cloud Shell, or by editing cluster parameters from the Configuration tab of the Cluster details page for the cluster in the Google Cloud Platform Console.
The following cluster parameters can be updated:
- the number of standard worker nodes in a cluster—see Scaling clusters
- the number of preemptible worker nodes in a cluster— see Preemptible VMs
- whether to use graceful decommissioning to control shutting down a worker after its jobs are completed
- adding or deleting cluster labels
Deleting a cluster
You can delete a cluster via a Cloud Dataproc API clusters.delete HTTP or programmatic request, using the Cloud SDK gcloud command-line tool locally in a terminal window or in Cloud Shell, or from the Google Cloud Platform Console.
gcloud commandTo delete a Cloud Dataproc cluster, use the Cloud SDK gcloud dataproc clusters delete command locally in a terminal window or in Cloud Shell.
gcloud dataproc clusters delete cluster-name