Deletes a logical database in Database Management (DMS). This operation only deletes the specified logical database but does not delete physical databases.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteLogicDatabase

The operation that you want to perform. Set the value to DeleteLogicDatabase.

LogicDbId Long Yes 1***

The ID of the logical database. You can call the ListLogicDatabases or SearchDatabase operation to query the ID of the logical database.

Tid Long No 3***

The ID of the tenant.

Note To view the ID of the tenant, move the pointer over the profile picture in the upper-right corner of the DMS console. For more information, see the "View information about the current tenant" section of the Manage DMS tenants topic.
RegionId String No cn-hangzhou

The ID of the region in which DMS is activated. For more information about the valid values of this parameter, see RegionID parameter.

Note Set this parameter to the ID of the region that is in proximity to your applications.

Response parameters

Parameter Type Example Description
RequestId String C51420E3-144A-4A94-B473-8662FCF4AD10

The ID of the request.

Success Boolean true

Indicates whether the request is successful. Valid values:

  • true: The request is successful.
  • false: The request fails.
ErrorMessage String UnknownError

The error message.

ErrorCode String UnknownError

The error code.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "C51420E3-144A-4A94-B473-8662FCF4AD10",
  "Success" : true

Error codes

For a list of error codes, visit the API Error Center.