Call this operation to delete a database.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:DeleteDB |
delete |
*EnterpriseDBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| DBInstanceId |
string |
Yes |
The cluster ID. |
cc-bp100p4q1g9z3**** |
| DBName |
string |
Yes |
The name of the target database. |
testdb001 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
06798FEE-BEF2-5FAF-A30D-728973BBE97C |
| Data |
object |
The returned data. |
|
| DBInstanceId |
string |
The cluster ID. |
cc-bp100p4q1g9z3**** |
| DBName |
string |
The database name. |
testdb001 |
Examples
Success response
JSON format
{
"RequestId": "06798FEE-BEF2-5FAF-A30D-728973BBE97C",
"Data": {
"DBInstanceId": "cc-bp100p4q1g9z3****",
"DBName": "testdb001"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | InvalidDBInstanceState.NotSupport | The specified instance state does't support this operation. | |
| 404 | InvalidDBInstanceId.NotFound | The DBInstanceId provided does not exist in our records. | The passed instance ID does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.