Deletes an account from an ApsaraDB for RDS instance.

Before you call this operation, make sure that the instance is in the Running state.

  • If the instance is running SQL Server 2017 and the Cluster Edition, PostgreSQL based on local SSDs, or PPAS, this operation is not supported.
  • If the instance is running PostgreSQL based on standard or enhanced SSDs and the account has permissions on databases, tables, or other objects, calling this operation will lock the account. You must revoke the permissions before you call this operation.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteAccount

The operation that you want to perform. Set the value to DeleteAccount.

AccountName String Yes test1

The name of the account.

DBInstanceId String Yes rm-uf6wjk5xxxxxxx

The ID of the instance.

Response parameters

Parameter Type Example Description
RequestId String 91E855E5-7E80-4955-929B-C74EE1D38C66

The ID of the request.


Sample requests

http(s):// Action=DeleteAccount
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.