This topic describes how to delete a database for an RDS for SQL Server instance by using the RDS console or an SQL command.

Delete a database by using the RDS console

  1. Log on to the RDS console.
  2. In the upper-left corner, select the region where the target RDS instance is located.
    选择地域
  3. Find the target RDS instance and click the instance ID.
  4. In the left-side navigation pane, click Databases.
  5. Find the database you want to delete, and in the Actions column click Delete.
  6. In the displayed dialog box, click Confirm.

Delete a database by using an SQL command

  1. Connect your database client to the target RDS instance. For more information, see Connect to an RDS for SQL Server instance.
  2. Run the following command to delete a database:
    drop database <database name>;

APIs

API Description
DeleteDatabase Used to delete a database for an RDS instance.