DROP ROLE
Last updated
Last updated
Drops a within the .
There are guidelines for dropping custom roles:
Only the owner of a role, or a role with , can drop a role.
You cannot drop any role that is the owner of an object. If you do wish drop such a role, you must first transfer ownership of the object (or objects) from the role you wish to drop to a role you intend to keep. To transfer ownership of an object, use GRANT OWNERSHIP.
You also cannot drop any role that has been granted any other roles. In this case, you must revoke any such granted roles first. To revoke any granted roles, use REVOKE ROLE.
The name of the role to drop. If the name is case sensitive you must wrap it in double quotes; otherwise the system uses the lower case name.