This topic describes how to delete an account in the RDS console or run an SQL statement to delete a standard account.

Use the console to delete an account

  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 Accounts.
  5. On the Accounts tab, find the account you want to delete, and in the Actions column click Delete.
  6. In the displayed dialog box, click Confirm.

Run an SQL statement to delete a standard account

You can only run an SQL statement to delete a standard account for an RDS instance.

  1. Log on to the target RDS instance. For more information, see How to connect to ApsaraDB?
  2. Run the following command to delete a standard account:
    DROP USER 'username'@'localhost';

APIs

API Description
DeleteAccount Used to delete an account for an RDS instance.