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

# DROP FILE

> DROP FILE 删除保存在数据库中的文件。

DROP FILE 语句用于删除保存在数据库中的文件。使用该语句删除一个文件，那么该文件在 FE 内存和 BDBJE 中均会被删除。

**Tip**

该操作需要 SYSTEM 级 FILE 权限。请参考 [GRANT](/documents/cn/4.2/sql-reference/sql-statements/account-management/GRANT.md) 为用户赋权。当一个文件归属于一个数据库时，对该数据库拥有访问权限的用户都可以使用该文件。

## 语法

```SQL theme={null}
DROP FILE "file_name" [FROM database]

[properties]
```

## 参数说明

| **参数** | **必填** | **描述** |
| - | - | - |
| file\_name | 是 | 文件名。 |
| database | 否 | 文件所属的数据库。 |
| properties | 是 | 文件属性，具体配置项见下表：`properties`配置项。 |

`properties` 配置项

| **配置项** | **必填** | **描述** |
| - | - | - |
| catalog | 是 | 文件所属类别。 |

## 示例

删除文件 `ca.pem`。

```SQL theme={null}
DROP FILE "ca.pem" properties("catalog" = "kafka");
```


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