Deletes an account of an ApsaraDB for Redis instance.

  • The version of the ApsaraDB for Redis instance must be Redis 4.0.
  • The ApsaraDB for Redis instance must be in the running state.

Debugging

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 demoaccount

The name of the account that you want to manage. The name must start with a lowercase letter and can contain lowercase letters, digits, and underscores (_). The name must be 1 to 16 characters in length.

InstanceId String Yes r-bp1zxszhcgatnx****

The ID of the instance.

RegionId String No cn-hangzhou

The ID of the region where the instance is deployed.

Response parameters

Parameter Type Example Description
RequestId String 8129F11A-D70B-43A6-9455-CE9EAA71****

The ID of the request.

Examples

Sample requests

https://r-kvstore.aliyuncs.com/?Action=DeleteAccount
&AccountName=demoaccount
&InstanceId=r-bp1zxszhcgatnx****
&<Common request parameters>

Sample success responses

XML format

<DeleteAccountResponse>
      <RequestId>8129F11A-D70B-43A6-9455-CE9EAA71****</RequestId>
</DeleteAccountResponse>

JSON format

{
 "RequestId":"8129F11A-D70B-43A6-9455-CE9EAA71****"
}

Error codes

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