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

# DROP REPOSITORY

> Deletes a repository.

Deletes a repository. Repositories are used to store data snapshots for data backup and restoration.

> **CAUTION**
>
> * Only root user and superuser can delete a repository.
> * This operation only deletes the mapping of the repository in the database, and does not delete the actual data. You need to delete it manually in the remote storage system. After deletion, you can map to that repository again by specifying the same remote storage system path.

## Syntax

```SQL theme={null}
DROP REPOSITORY <repository_name>
```

## Parameters

| **Parameter** | **Description** |
| - | - |
| repository\_name | Name of the repository to be deleted. |

## Example

Example 1: deletes a repository named `oss_repo`.

```SQL theme={null}
DROP REPOSITORY `oss_repo`;
```


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