Deletes an existing role from a MaxCompute project.

Limits

Before you delete a role, you must make sure that no users are assigned this role.

Syntax

drop role <role_name>;

Parameters

role_name: required. The name of the role that you want to delete.

Examples

-- Delete the player role. 
drop role player;

Related statements

  • CREATE ROLE: Creates a role in a MaxCompute project.
  • LIST ROLES: Views the information of all roles in a MaxCompute project.
  • GRANT: Assigns a role to a user so that the user has all the permissions of the role.
  • REVOKE: Revokes permissions of a specified role from a user.