> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# DROP ROLE

> DROP ROLE drops a role.

## 功能

删除一个角色。如一个角色已授予某用户，那么该角色删除后，用户将会失去该角色拥有的相关权限。

**Tip**

* 只有拥有 `user_admin` 角色的用户才可以删除角色。
* [数据库 系统预置角色](/documents/cn/4.2/administration/user_privs/authorization/user_privs.md#系统预置角色)不可以删除。

## 语法

```SQL theme={null}
DROP ROLE <role_name>
```

## 参数说明

`role_name`：要删除的角色名称。

## 示例

删除角色 `analyst`。

```SQL theme={null}
  DROP ROLE analyst;
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.