This page explains how to update and delete an existing Dataproc cluster.
Update a cluster
You can update a cluster by issuing a 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 console.
The following cluster parameters can be updated:
- the number of standard worker nodes in a cluster—see Scaling clusters
- the number of secondary 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
Delete a cluster
You can delete a cluster via a Dataproc API clusters.delete HTTP or programmatic request, using the Google Cloud CLI gcloud command-line tool locally in a terminal window or in Cloud Shell, or from the Google Cloud console.
gcloud dataproc clusters delete cluster-name \ --region=region
Use the Dataproc clusters.delete API to delete a cluster.
Open the Dataproc Clusters page in the Google Cloud console. Select the cluster by checking the box to the left of the cluster name, then Click Delete to delete the cluster.