Skip to main content
The DROP POLICY statement removes an existing policy from a .

Syntax

DROP POLICY [ IF EXISTS ] policy_name ON table_name [ CASCADE | RESTRICT ];

Parameters

ParameterDescription
policy_nameUnique identifier for the policy on the table.
table_nameThe to which the policy applies.
IF EXISTSSuppresses an error if the policy doesn’t exist.
CASCADE, RESTRICTStandard dependency handling (not relevant for policies themselves).

Examples

Drop a policy

To drop an existing policy, issue the following statement:
DROP POLICY IF EXISTS your_policy ON orders;

See also