DROP REPOSITORY
Descriptionβ
This statement is used to delete a created repository.
Syntaxβ
DROP REPOSITORY <repo_name>;
Required Parametersβ
<repo_name>
The unique name of the repository.
Access Control Requirementsβ
Privilege | Object | Notes |
---|---|---|
ADMIN_PRIV | Entire cluster management permissions | Only the root or superuser can create repositories |
Usage notesβ
- Deleting the repository only removes its mapping in Doris and does not delete the actual repository data. After deletion, the repository can be mapped again by specifying the same LOCATION.
Examplesβ
Delete the repository named example_repo:
DROP REPOSITORY `example_repo`;