This topic describes how to delete a database from an ApsaraDB RDS for PostgreSQL instance.

Delete a database from an RDS instance that is equipped with standard SSDs or enhanced SSDs

Note After you delete a database from an RDS instance, ApsaraDB RDS recycles the storage that is occupied by the database. You can check the available disk space of an RDS instance on the Monitoring and Alerts page of the RDS instance in the ApsaraDB RDS console. For more information, see View the resource and engine metrics of an ApsaraDB RDS for PostgreSQL instance.
  1. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the left-side navigation pane, click Databases.
  3. In the Actions column click Delete.
  4. In the message that appears, click OK.

Delete a database from an RDS instance that is equipped with local SSDs

Note After you delete a database from an RDS instance, ApsaraDB RDS recycles the storage that is occupied by the database. You can check the available disk space of an RDS instance on the Monitoring and Alerts page of the RDS instance in the ApsaraDB RDS console. For more information, see View the resource and engine metrics of an ApsaraDB RDS for PostgreSQL instance.
  1. Connect to the RDS instance to which the database belongs. For more information, see Connect to an ApsaraDB RDS for PostgreSQL instance.
  2. Execute the following statement to delete the database:
    drop database <database name>;