How Do I Clear Redis Data?
Exercise caution when clearing data.
- Redis 3.0
Data of a DCS Redis 3.0 instance cannot be cleared on the console, and can only be cleared by the FLUSHDB or FLUSHALL command in redis-cli.
Run the FLUSHALL command to clear all the data in the instance.
Run the FLUSHDB command to clear the data in the currently selected DB.
- Redis 4.0 and 5.0
Data of a DCS Redis 4.0 or 5.0 instance can be cleared all at once on the console or by the FLUSHDB or FLUSHALL command in redis-cli.
To clear data of a Redis Cluster instance, run the FLUSHDB or FLUSHALL command on every shard of the instance. Otherwise, data may not be completely cleared.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot