DROP ROLE
Remove a role from the system. Learn the syntax to delete defined roles and revoke them from any users or roles that currently hold them.
Syntax
DROP ROLE [IF EXISTS] role_name [,role_name ...]Description
ERROR 1396 (HY000): Operation DROP ROLE failed for 'a','b','c'IF EXISTS
Examples
DROP ROLE journalist;DROP ROLE journalist;
ERROR 1396 (HY000): Operation DROP ROLE failed for 'journalist'
DROP ROLE IF EXISTS journalist;
Query OK, 0 rows affected, 1 warning (0.00 sec)
Note (Code 1975): Can't drop role 'journalist'; it doesn't existSee Also
Last updated
Was this helpful?

