All Products
Search
Document Center

ApsaraDB RDS:Delete an account

Last Updated:Mar 28, 2026

Delete a privileged or standard account from an ApsaraDB RDS for MariaDB instance when it is no longer needed.

Choose a deletion method

MethodPrivileged accountsStandard accounts
ApsaraDB RDS consoleSupportedSupported
SQL statementsNot supportedSupported

Delete an account in the console

Use the console to delete privileged accounts and standard accounts.

  1. Go to the Instances page. In the top navigation bar, select the region where the instance resides, then click the instance ID.

  2. In the left-side navigation pane, click Accounts.

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

  4. In the dialog box, click OK.

Delete a standard account using SQL

Note

SQL statements can only delete standard accounts. To delete a privileged account, use the console.

  1. Go to the Instances page. In the top navigation bar, select the region where the instance resides, then click the instance ID.

  2. In the upper-right corner, click Log On to Database to open the RDS Database Logon page in the Data Management (DMS) console.

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

  4. Run the following statement:

    DROP USER 'username';
  5. Click Execute.

API reference

OperationDescription

DeleteAccount

Deletes accounts including privileged accounts and standard accounts.

What's next

Create an account