DROP REDACTION POLICY deletes a data masking policy applied to a specified table.
Only the table owner has the permission to delete a data redaction policy.
1 | DROP REDACTION POLICY [ IF EXISTS ] policy_name ON table_name; |
Sends a notice instead of throwing an error if the redaction policy to be deleted does not exist.
Specifies the name of the masking policy to be deleted.
Specifies the name of the table with the masking policy to be deleted.
Delete the masking policy mask_emp from table emp:
1 | DROP REDACTION POLICY mask_emp ON emp; |