You can delete databases from instances. To do this, the interface must meet the following conditions, otherwise the call will fail:

  • The instance status is Running.

  • The instance type is primary instance.

Users of PostgreSQL and PPAS instances are permitted to perform the DROP DATABASE operation through SQL. Therefore, this interface does not support PostgreSQL and PPAS.

Request parameters

Name Type Required Description
Action String Yes Required parameter. Value: DeleteDatabase.
DBInstanceId String Yes Instance ID.
DBName String Yes Name of a database.

Return parameters

Name Type Description
<Public Return Parameters> - For more information, see Public parameters.

Request example
&<[Public Request Parameters]>

Return example

XML format


JSON format