Deleting a Yandex Data Processing cluster
You can delete a cluster along with all the data stored in it. Note that data backups are not created automatically: if you want to save data for cluster recovery or future use, you can do that, for example, using Yandex Object Storage.
To delete a Yandex Data Processing cluster, the user must have the dataproc.editor
role assigned. For more information, see the role description.
Before deleting a cluster
Disable deletion protection for the cluster if it is enabled.
Deleting a cluster
- Go to the folder page
and select Yandex Data Processing. - Click
for the cluster you need and select Delete. - (Optional) Specify the decommissioning timeout.
- In the window that opens, click Delete.
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
To delete a cluster, run the command:
yc dataproc cluster delete <cluster_name_or_ID>
You can request the cluster ID and name with a list of clusters in the folder.
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the documentation on the Terraform
If you don't have Terraform, install it and configure the Yandex Cloud provider.
To delete a cluster created using Terraform:
-
In the command line, go to the folder that houses the current Terraform configuration file with an infrastructure plan.
-
Delete the resources using this command:
terraform destroy
Alert
Terraform will delete all the resources you created using it, such as clusters, networks, subnets, and VMs.
-
Type
yes
and press Enter.