Removes a role. The Control Plane cascades the removal: role grants and direct object grants for this role are revoked.
DROP ROLE [IF EXISTS] <name>
## Overview DROP ROLE removes a role from the RBAC catalog. All assignments of this role to users, groups, and service principals are revoked, and all direct grants targeting this role on objects are removed. ## Behavior - Without IF EXISTS, dropping a non-existent role raises an error. With IF EXISTS, the operation succeeds silently. - Cascading removal: every assignment of the role to a principal is dropped. Every grant on a zone, schema, table, external location, or storage credential targeting the role is removed. - Roles that inherit from this role lose the inheritance link. Their parent reference becomes dangling and must be repaired with ALTER ROLE if continued inheritance is intended. ## Access Control Requires the `ManageRoles` privilege. ## Compatibility DeltaForge extension.
| Name | Type | Description |
|---|---|---|
name | Specifies the role to drop. | |
if_exists | Skip silently when the role does not exist. |
DROP ROLE old_analyst;
DROP ROLE IF EXISTS old_analyst;