All Products
Search
Document Center

MaxCompute:DROP ROLE

Last Updated:Mar 26, 2026

Deletes a role from a MaxCompute project.

Limits

Before deleting a role, make sure no users are assigned to it.

Syntax

drop role <role_name>;

Parameters

ParameterRequiredDescription
role_nameYesThe name of the role to delete.

Examples

-- Delete the player role.
drop role player;

What's next

  • CREATE ROLE: Creates a role in a MaxCompute project.

  • LIST ROLES: Lists the information of all roles in a MaxCompute project.

  • GRANT: Assigns a role to a user, granting the user all permissions of that role.

  • REVOKE: Revokes a role's permissions from a user.