Clearing DCS Instance Data
To clear instance data, use the FLUSHDB or FLUSHALL commands on accessed instances, or the data clearance function on the DCS console. This section describes how to use the function to clear instance data with one click.

Clearing instance data may cause the service latency to increase sharply.
Notes and Constraints
- The instances must be of Redis 4.0 and later, and in the Running state.
- Clearing instance data cannot be undone and cleared data cannot be recovered. Exercise caution when performing this operation.
Procedure
- Log in to the management console, and choose Application > Distributed Cache Service in the service list.
- Click
in the upper left corner of the console and select the region where your instance is located.
- In the navigation pane, choose Cache Manager.
- Select one or more DCS instances.
- Choose More > Clear Data above the instance list.
- In the displayed dialog box, click Yes.
Related Documents
- To clear instance data by calling an API, see Restarting DCS Instances or Clearing DCS Instance Data.
- To delete expired Redis keys, see How Does DCS Delete Expired Keys?.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.