Home / Snippets / How to Clear Redis Data?
How to Clear Redis Data? cover

How to Clear Redis Data?

216

3 years ago

0 comments

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.
notion avatar

Alaz

Week-end developer currently experimenting with web, mobile, and all things programming.

Topics:

Frontend

Resource

Average

Average

Support Us

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

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this