OrientDB HTTP API是否支持删除数据库功能?官方文档未找到相关说明
Does OrientDB HTTP API Support Database Deletion?
Yes, OrientDB's HTTP API does include functionality to delete a database—even though it’s easy to overlook in the 2.2.x REST documentation, as it’s not placed in a dedicated, highly visible section.
Here’s how you can perform this operation:
- Send a
DELETErequest to the endpoint:/databases/<your-database-name> - You’ll need to authenticate with a user account that has sufficient permissions (such as
rootor a database owner), usually via Basic Auth. - Example curl command to execute the deletion:
curl -X DELETE -u root:your-secure-password http://localhost:2480/databases/my_target_db
Key Notes:
- This action is irreversible—be absolutely certain you’ve backed up any critical data before running it.
- In a distributed OrientDB cluster, you may need to verify cluster synchronization after deletion, but the core delete operation works identically on single nodes.
- While the 2.2.x docs don’t highlight this endpoint prominently, it’s fully functional in that version.
内容的提问来源于stack exchange,提问作者Tarun Patel
相关产品推荐
相关产品推荐

