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

# UNINSTALL PLUGIN

> UNINSTALL PLUGIN removes a plugin from the database.

## 功能

该语句用于卸载一个插件。

**Tip**

该操作需要 SYSTEM 级 PLUGIN 权限。请参考 [GRANT](/documents/cn/4.2/sql-reference/sql-statements/account-management/GRANT.md) 为用户赋权。

## 语法

```SQL theme={null}
UNINSTALL PLUGIN plugin_name
```

plugin\_name 可以通过 `SHOW PLUGINS;` 命令查看。

只能卸载非 builtin 的插件。

## 示例

1. 卸载一个插件：

   ```SQL theme={null}
   UNINSTALL PLUGIN auditdemo;
   ```


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