All Products
Search
Document Center

ApsaraDB RDS:Delete an account

Last Updated:Feb 05, 2024

You can delete accounts, including a privileged account and standard accounts of an ApsaraDB RDS for MySQL instance that you no longer use, in the ApsaraDB RDS console or by calling API operations. You can also execute SQL statements to delete standard accounts.

Delete a privileged or standard account in the ApsaraDB RDS console

  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 Accounts.

  3. Find the account that you want to delete, and click Delete in the Actions column.

  4. In the dialog box that appears, click OK.

Delete a standard account by using SQL statements

Note

This feature is supported only for specific RDS instance types. The privileged account cannot be deleted by using SQL statements.

  1. Use DMS to log on to an RDS instance. For more information, see Use DMS to log on to an RDS instance.

  2. In the top navigation bar, choose SQL Operations > SQL Window.

  3. Execute the following statement:

    DROP USER 'username';
  4. Click Execute.

Related operations

Operation

Description

DeleteAccount

Deletes a privileged or standard account.

References

Create an account