You can call this operation to delete a database.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteDatabase |
The operation that you want to perform. Set the value to DeleteDatabase. |
InstanceId | String | Yes | z8gw7qdjm361b4i |
The ID of the database instance. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | OK |
The status code. |
Data | String | xxx |
The returned result. |
ErrorMsg | String | None |
The error message. |
RequestId | String | CDDAAA07-D806-AG67-BEE8-1E43AAE024DC |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call is successful. |
Examples
Sample requests
http(s)://dg.[regionId].aliyuncs.com/?Action=DeleteDatabase
&InstanceId=z8gw7qdjm361b4i
&<Common request parameters>
Sample success responses
XML
format
<DeleteDatabaseResponse>
<RequestId>CDDAAA07-D806-AG67-BEE8-1E43AAE024DC</RequestId>
</DeleteDatabaseResponse>
JSON
format
{
"RequestId":"CDDAAA07-D806-AG67-BEE8-1E43AAE024DC"
}
Error codes
For a list of error codes, visit the API Error Center.