gcloud alpha backup-dr backup-vaults delete Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha backup-dr backup-vaults delete - delete the specified Backup Vault
- SYNOPSIS
gcloud alpha backup-dr backup-vaults delete(BACKUP_VAULT:--location=LOCATION)[--allow-missing][--no-async][--ignore-backup-plan-references][--ignore-inactive-datasources][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Delete the specified Backup Vault.- EXAMPLES
- To delete a backup vault
inlocationBACKUP_VAULT, run:MY_LOCATIONgcloudalphabackup-drbackup-vaultsdeleteBACKUP_VAULT--location=MY_LOCATIONTo override restrictions against the deletion of a backup vault
containing inactivedatasources in locationBACKUP_VAULT, run:MY_LOCATIONgcloudalphabackup-drbackup-vaultsdeleteBACKUP_VAULT--location=MY_LOCATION--ignore-inactive-datasourcesTo override restrictions against the deletion of a backup vault
containing backup planreferences in locationBACKUP_VAULT, run:MY_LOCATIONgcloudalphabackup-drbackup-vaultsdeleteBACKUP_VAULT--location=MY_LOCATION--ignore-backup-plan-references - POSITIONAL ARGUMENTS
- Backup Vault resource - Name of the backup vault to delete. Before you delete,take a look at the prerequisiteshere.The arguments in this group can be used to specify the attributes of thisresource. (NOTE) Some attributes are not given arguments in this group but canbe set in other ways.
To set the
projectattribute:- provide the argument
backup_vaulton the command line with a fullyspecified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
BACKUP_VAULT- ID of the Backup Vault or fully qualified identifier for the Backup Vault.
To set the
nameattribute:- provide the argument
backup_vaulton the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--location=LOCATION- The location of the Backup Vault.
To set the
locationattribute:- provide the argument
backup_vaulton the command line with a fullyspecified name; - provide the argument
--locationon the command line.
- provide the argument
- provide the argument
- Backup Vault resource - Name of the backup vault to delete. Before you delete,take a look at the prerequisiteshere.The arguments in this group can be used to specify the attributes of thisresource. (NOTE) Some attributes are not given arguments in this group but canbe set in other ways.
- FLAGS
--allow-missing- Allow idempotent deletion of backup vault. The request will still succeed incase the backup vault does not exist.
--no-async- Wait for the operation in progress to complete.
--ignore-backup-plan-references- If set, the following restrictions against deletion of the backup vault instancecan be overridden: * deletion of a backup vault instance being activelyreferenced by a backup plan.
--ignore-inactive-datasources- If set, the following restrictions against deletion of the backup vault instancecan be overridden: * deletion of a backup vault instance containing nobackups,but still contains empty datasources.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - API REFERENCE
- This command uses the backupdr/v1 API. The full documentation for this API canbe found at:https://cloud.google.com/backup-disaster-recovery
- BRIEF
- Deletes a specific backup vault
- NOTES
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. This variant is also available:
gcloudbackup-drbackup-vaultsdelete
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.