DROP BACKUP POLICY¶
Deletes a backup policy.
Syntax¶
DROP BACKUP POLICY <name>
Parameters¶
nameSpecifies 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 識別子の要件.
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 カスタムロールの作成.
For general information about roles and privilege grants for performing SQL actions on securable objects, see アクセス制御の概要.
Usage notes¶
A backup policy can't be deleted if it is attached to any backup set.
Examples¶
Delete the backup policy hourly_backup_policy:
DROP BACKUP POLICY hourly_backup_policy;