Access control
DROP ROLE
Reference and syntax for the DROP ROLE command.
Deletes a role. Note that role cannot be dropped if there are permissions granted to the role, in this case
error message will be displayed and you need manually to drop permissions granted to the role and retry.
For more information, see Role-based access control.
If “my_role_2” does not exist, no error message is thrown.