You can call this operation to delete an RDS database account.

When you call this operation, the instance must be in the running state.

Note This operation is not applicable to SQL Server 2017 Cluster Edition, PostgreSQL, and PPAS instances.

Debugging

You can use OpenAPI Explorer to perform debugging.

OpenAPI Explorer provides various functions to simplify API usage. For example, you can retrieve APIs, call APIs, and generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteAccount

The operation that you want to perform. Set this parameter to DeleteAccount.

DBInstanceId String Yes rm-uf6wjk5xxxxxxx

The ID of the instance.

AccountName String Yes test1

The name of the database account to be deleted.

AccessKeyId String No LTAIfCxxxxxxx

The AccessKey ID issued by Alibaba Cloud for users to access services.

Response parameter

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

The ID of the request.

Examples

Request example


http(s)://rds.aliyuncs.com/?Action=DeleteAccount
&DBInstanceId=rm-uf6wjk5xxxxxxx
&AccountName=test1
&<Common request parameters>

Normal response examples

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.