DROP SNAPSHOT POLICY¶

Deletes a snapshot policy.

See also:

CREATE SNAPSHOT POLICY, ALTER SNAPSHOT POLICY, SHOW SNAPSHOT POLICIES

Syntax¶

DROP SNAPSHOT POLICY <name>
Copy

Parameters¶

name

Specifies the identifier for the snapshot 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.

Access control requirements¶

A role used to execute this operation must have the following privileges at a minimum:

Privilege

Object

Notes

OWNERSHIP

Snapshot policy

The role used to delete a snapshot 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.

Usage notes¶

A snapshot policy can’t be deleted if it is attached to any snapshot set.

Examples¶

Delete the snapshot policy hourly_snapshot_policy:

DROP SNAPSHOT POLICY hourly_snapshot_policy;
Copy