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

How to Clear Redis Data?

184

2 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

Ahmad Aziz

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 ☕️

Post Tutorials

Learn trending tutorials for ReactJs, React Native, VueJS, NextJs, Laravel, Tailwind CSS, and Flutter development.
View Tutorials

Code Components

Collection of Tailwind CSS components for everyone to use. Browse all of the components that's right for your web projects
View Components

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this