DROP BACKUP POLICY
statementsupportedReplication, failover & backupBusiness Critical+Deletes a backup policy. Backups are available for all Snowflake editions. Backups with retention lock and backups with legal holds are available for Business Critical Edition (or higher). To inquire about upgrading, please contact Snowflake Support.
Syntax
supportedpartialnot supportednot scored
DROP BACKUP POLICY [ IF EXISTS ] <name>
Parameters
| Name | Required | Description |
|---|---|---|
IF EXISTS | If the backup policy doesn’t exist, the command completes without error. | |
name | Specifies the identifier for the backup policy. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive. For more information, see Identifier requirements. |
Usage notes
- A backup policy can’t be deleted if it is attached to any backup set.
Access control requirements
A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes OWNERSHIP | Backup policy | The role used to delete a backup policy must have the OWNERSHIP privilege on the policy. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.