You can delete database accounts, such as privileged and standard accounts, from an ApsaraDB RDS for MySQL instance if they are no longer needed. You can delete accounts in the ApsaraDB RDS console or by calling an API operation. You can also run SQL commands to delete standard accounts.
Delete a privileged or standard account in the ApsaraDB RDS console
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.
In the navigation pane on the left, click Account Management.
Find the account that you want to delete and click Delete in the Actions column.
In the dialog box that appears, click OK.
Delete a standard account using SQL statements
You can run SQL commands to delete standard accounts for specific instance types only. You cannot use SQL commands to delete privileged accounts.
In the top navigation bar, choose .
Run the following SQL command to delete the account:
DROP USER 'username';Click Execute.
FAQ
References
For more information, see the DeleteAccount API operation.
For more information, see Create an account in the ApsaraDB RDS console and the CreateAccount API operation.