Delete a backup

This page describes how to delete an AlloyDB backup.

Before you begin

  • The Google Cloud project you are using must have been enabled to access AlloyDB.
  • You must have one of these IAM roles in the Google Cloud project you are using:
    • roles/alloydb.admin (the AlloyDB Admin predefined IAM role)
    • roles/owner (the Owner basic IAM role)
    • roles/editor (the Editor basic IAM role)

    If you don't have any of these roles, contact your Organization Administrator to request access.

Procedure

gcloud

To use the gcloud CLI, you can install and initialize the Google Cloud CLI, or you can use Cloud Shell.

Use the backups delete command to delete an AlloyDB backup.

gcloud alloydb backups delete BACKUP_ID \
    --region=REGION_ID \
    --project=PROJECT_ID
  • BACKUP_ID: The ID of the backup. You can find a backup's ID by viewing a list of backups.
  • REGION_ID: The ID of the region where the backup is placed.
  • PROJECT_ID: The ID of the project where the backup is placed.

Restrictions on deleting backups

You can delete on-demand or automated backups at any time, but AlloyDB limits the circumstances under which you can delete continuous backups. AlloyDB requires the presence of these backups for continuous backup and recovery to work.

AlloyDB lets you delete a continuous backup only if at least one of these circumstances is true:

In addition, AlloyDB doesn't let you delete any backup that has continuous or automated backups based on it. These backups are incremental backups, and they rely on the existence of specific previous backups in order to keep your data safe and restorable.