Revokes one or more privileges on a storage credential from a principal.
REVOKE <privilege> [, <privilege> ...] ON STORAGE CREDENTIAL <name> FROM <principal>
## Overview REVOKE ON STORAGE CREDENTIAL removes privileges from a principal. The revoke is idempotent. ## Behavior - External locations already created using a now-revoked CREATE_EXTERNAL_LOCATION grant continue to exist. The revoke prevents new locations but does not remove existing ones. - Downstream grants made under WITH GRANT OPTION persist until revoked explicitly. ## Access Control Requires the `ManageGrants` privilege on the credential. ## Compatibility DeltaForge extension.
| Name | Type | Description |
|---|---|---|
privileges | Specifies one or more privileges as a comma-separated list. | |
credential_name | Specifies the storage credential. | |
principal | Specifies the principal to revoke from. |
REVOKE CREATE_EXTERNAL_LOCATION ON STORAGE CREDENTIAL prod_aws_role FROM ROLE pipeline_lead;