DROP ROLE
On this page
Remove a role from a SingleStore cluster.
Syntax
DROP ROLE [IF EXISTS] 'role_name'Remarks
-
IF EXISTSis available in 6.0. 15 or later. -
This command causes implicit commits.
Refer to COMMIT for more information. -
Refer to the Permission Matrix for the required permissions.
Example
SHOW ROLES;
+-------------+
| Roles |
+-------------+
| role_name_0 |
| role_name_1 |
| role_name_2 |
| role_name_3 |
+-------------+
4 rows in set (0.00 sec)DROP ROLE 'role_name_0';SHOW ROLES;
+-------------+
| Roles |
+-------------+
| role_name_1 |
| role_name_2 |
| role_name_3 |
+-------------+
3 rows in set (0.00 sec)Last modified: August 18, 2023