Clears the data of an ApsaraDB for Redis instance. The cleared data cannot be recovered.

You can also clear the data of an instance in the ApsaraDB for Redis console. For more information, see Clear data.

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

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 FlushInstance

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

InstanceId String Yes r-bp1zxszhcgatnx****

The ID of the instance.

Response parameters

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

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

<FlushInstanceResponse>
      <RequestId>8D0C0AFC-E9CD-47A4-8395-5C31BF9B3E76</RequestId>
</FlushInstanceResponse>

JSON format

{
  "RequestId":"8D0C0AFC-E9CD-47A4-8395-5C31BF9B3E7"
}

Error codes

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