You can call this operation to clear data of an ApsaraDB for Redis instance. The cleared data cannot be recovered.

For more information about how to perform the corresponding operation in the console, see Clear data.

Note Before you start, back up the data or make sure that the data does not need to be backed up.


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 No FlushInstance

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

InstanceId String Yes r-j6cxxxxxxxxxxxxx

The ID of the instance.

Response parameters

Parameter Type Example Description
RequestId String 8D0C0AFC-E9CD-47A4-8395-5C31BF9B3E7

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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