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

# DROP FILE

> Use the DROP FILE statement to delete a file.

Use the DROP FILE statement to delete a file. When you use this statement to delete a file, the file is deleted both in frontend (FE) memory and in Berkeley DB Java Edition (BDBJE).

**Tip**

This operation requires the SYSTEM-level FILE privilege. You can follow the instructions in [GRANT](/documents/4.2/sql-reference/sql-statements/account-management/GRANT.md) to grant this privilege.

## Syntax

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

## Parameters

| **Parameter** | **Required** | **Description** |
| - | - | - |
| file\_name | Yes | The name of the file. |
| database | No | The database to which a file belongs. |
| properties | Yes | The properties of the file. The following table describes the configuration items of properties. |

**Configuration items of** **`properties`**

| **Configuration items** | **Required** | **Description** |
| - | - | - |
| catalog | Yes | The category to which a file belongs. |

## Examples

Delete a file named **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.