All Products
Search
Document Center

ApsaraDB RDS:Delete a database

Last Updated:Jan 19, 2024

This topic describes how to delete a database from an ApsaraDB RDS for MariaDB instance by using the ApsaraDB RDS console or an SQL statement.

Use the ApsaraDB RDS console to delete a database

Warning

When you delete a database from an RDS instance by using the ApsaraDB RDS console or an SQL statement, the database becomes unavailable. Proceed with caution.

  1. Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
  2. In the left-side navigation pane, click Databases.

  3. Find the database you want to delete and click Delete in the Actions column.

  4. In the message that appears, click OK.

Use an SQL statement to delete a database

  1. Connect a client to the RDS instance. For more information, see Connect to an ApsaraDB RDS for MariaDB instance.

    Note

    Data Management (DMS) is not supported for ApsaraDB RDS for MariaDB.

  2. Execute the following statement to delete the database:

    drop database <database name>;

Related operations

Operation

Description

DeleteDatabase

Deletes a database.