You can call this operation to delete a database from an AnalyticDB for PostgreSQL instance.


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 DeleteDatabase

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

DBInstanceId String Yes gp-xxxxxxxxxxx

The ID of the instance.

DBName String No testdb01

The name of the database.

Response parameters

Parameter Type Example Description
RequestId String 07F6177E-6DE4-408A-BB4F-0723301340F3

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format


Error code

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