All Products
Search
Document Center

ApsaraDB RDS:Delete an account

Last Updated:Feb 07, 2024

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

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

You can delete only standard accounts by using SQL statements.

  1. Log on to the ApsaraDB RDS console and 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 upper-right corner of the page, click Log On to Database to go to the RDS Database Logon page of the Data Management (DMS) console.

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

  4. Execute the following statement:

    DROP USER 'username';
  5. Click Execute.

Related operations

Operation

Description

DeleteAccount

Deletes accounts including privileged accounts and standard accounts.

References

Create an account