Deletes an account from an ApsaraDB for RDS instance.
Before you call this operation, make sure that the instance is in the Running state.
Note
- 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.
Debugging
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. |
Examples
Sample requests
http(s)://rds.aliyuncs.com/? Action=DeleteAccount
&DBInstanceId=rm-uf6wjk5xxxxxxx
&AccountName=test1
&<Common request parameters>
Sample success responses
XML
format
<DeleteAccountResponse>
<RequestID>91E855E5-7E80-4955-929B-C74EE1D38C66</RequestID>
</DeleteAccountResponse>
JSON
format
{
"RequestID":"91E855E5-7E80-4955-929B-C74EE1D38C66"
}
Error codes
For a list of error codes, visit the API Error Center.