Delete a Dataproc Metastore service
Stay organized with collections
Save and categorize content based on your preferences.
This page explains how to delete a Dataproc Metastore service.
You might want to delete your Dataproc Metastore service if you
chose some configuration settings that can't be changed, such as the service
name or the Hive metastore version.
To get the permission that
you need to delete a Dataproc Metastore service,
ask your administrator to grant you the
following IAM roles on your project, based on the principle of least privilege:
The following instructions demonstrate how to delete a Dataproc Metastore
service.
Considerations
Your Cloud Storage bucket isn't automatically deleted when you delete your
Dataproc Metastore. To delete a bucket, see Deleting buckets.
After deleting a Dataproc Metastore, auto-created
VPC Network Peering routes used by the service persist for up to 3 hours.
Note that if any other Dataproc Metastore services continue to
use these VPC Network Peering routes, they aren't deleted.
Dataproc Metastore deletion protection is a feature that helps you
prevent the accidental removal of existing and new Dataproc Metastore
services. By using deletion protection, you can safeguard services that are
important to your applications and workloads.
Considerations
By default, the deletion protection option is disabled.
You can only set deletion protection at the instance level. Individual
protection can't be set on metadata, such as tables, databases or
partitions. You also can't enable protection on a backup.
If the project containing a protected instance is deleted, the instance is
also deleted, irrespective of deletion-protection.
Enable deletion-protection
You can enable deletion protection when you create an instance or
on an existing instance.
To disable deletion-protection on a Dataproc Metastore service, run the
following gcloud metastore services update
command with the --no-deletion-protection option.
gcloud metastore services update SERVICE \
--location=LOCATION \
--no-deletion-protection
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026年08月26日 UTC."],[],[]]