Posts Learn Components Snippets Categories Tags About
/

How to Clear Redis Data?

Learn how to clear your redis data the easy way

Created on Aug 28, 2021

23 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.

Snippets by

PostSrc poster

PostSrc

Full stack developer mainly focusing on the front end side of the web. The main author of PostSrc and loves writing tutorial and guides online.

Load comments for How to Clear Redis Data?

new

PostSrc Code Components

Collection of Tailwind CSS components for everyone to use. Browse all of the components that's right for your project.

View Components

Other Code Snippets

More