Delete a secret backup

This document explains how to delete a secret backup. When you delete a secret backup, the backup and all its associated data are permanently deleted. Deleting a backup doesn't affect the source secret or any secrets that you restored from the backup.

Required roles

To get the permission that you need to delete a secret backup, ask your administrator to grant you the following IAM roles on the project, folder, or organization:

For more information about granting roles, see Manage access to projects, folders, and organizations.

This predefined role contains the secretmanager.backups.delete permission, which is required to delete a secret backup.

You might also be able to get this permission with custom roles or other predefined roles.

Delete a secret backup

To delete a secret backup, use one of the following methods:

Console

  1. In the Google Cloud console, go to the Secret Manager page.

    Go to Secret Manager

  2. Navigate to the Backups tab.

  3. Locate the backup in the list and click the Actions menu associated with that secret backup. In the Actions menu, click Delete backup.

  4. In the dialog that appears, enter the backup name to confirm, and then click Delete backup.

REST

Before using any of the request data, make the following replacements:

  • BACKUP_LOCATION: the Google Cloud supported region where the backup is stored.
  • PROJECT_ID: the Google Cloud project ID where the backup is stored.
  • BACKUP_ID: the ID of the backup.

HTTP method and URL:

DELETE https://secretmanager.BACKUP_LOCATION.rep.googleapis.com/v1/projects/PROJECT_ID/locations/BACKUP_LOCATION/backups/BACKUP_ID

To send your request, choose one of these options:

curl

Execute the following command:

curl -X DELETE \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://secretmanager.BACKUP_LOCATION.rep.googleapis.com/v1/projects/PROJECT_ID/locations/BACKUP_LOCATION/backups/BACKUP_ID"

PowerShell

Execute the following command:

$cred = gcloud auth print-access-token
$headers = @{ "Authorization" = "Bearer $cred" }

Invoke-WebRequest `
-Method DELETE `
-Headers $headers `
-Uri "https://secretmanager.BACKUP_LOCATION.rep.googleapis.com/v1/projects/PROJECT_ID/locations/BACKUP_LOCATION/backups/BACKUP_ID" | Select-Object -Expand Content

You should receive a JSON response similar to the following:

{
  "name": "projects/PROJECT_ID/locations/BACKUP_LOCATION/operations/OPERATION_ID",
  "metadata": {
    "@type": "type.googleapis.com/google.cloud.secretmanager.v1.OperationMetadata",
    "createTime": "2026-03-25T08:24:13.153705Z",
    "target": "projects/PROJECT_ID/locations/BACKUP_LOCATION/backups/BACKUP_ID",
    "verb": "delete",
    "requestedCancellation": false,
    "apiVersion": "v1"
  },
  "done": false
}

What's next