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

# DROP RESOURCE

> Use DROP RESOURCE to drop an existing resource.

## 功能

该语句用于删除一个已有的资源。需要拥有资源的 DROP 权限才可以删除资源。

创建 RESOURCE 操作请参考 [CREATE RESOURCE](/documents/cn/4.2/sql-reference/sql-statements/Resource/CREATE_RESOURCE.md) 章节。

## 语法

```sql theme={null}
DROP RESOURCE 'resource_name'
```

## 示例

1. 删除名为 spark0 的 Spark 资源。

   ```SQL theme={null}
   DROP RESOURCE 'spark0';
   ```

2. 删除名为 hive0 的 Hive 资源。

   ```SQL theme={null}
   DROP RESOURCE 'hive0';
   ```


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