Posts Learn Components Snippets Categories Tags Tools About
/

How to Clear Redis Data?

Learn how to clear your redis data the easy way

Created on Aug 28, 2021

116 views

To clear your Redis data you can make use of the "FLUSHDB" command available within the redis-cli.

Launch redis-cli in Terminal


Type in "redis-cli" from your terminal to enter the Redis console. This is necessary to run the Redis command.
redis-cli

Command to Clear Redis Data


To clear data of a Redis cluster instance, you can run "FLUSHDB" or "FLUSHALL" command in every machine instance otherwise data might not be completely cleared.
FLUSHDB
FLUSHALL
By now your Redis data will be fully cleared.

If you like our tutorial, do make sure to support us by being our Patreon or buy us some coffee ☕️

Load comments for How to Clear Redis Data?

)