The following two commands can be used to empty the database.

  • FLUSHDB:- Removes all the data from the database which the user is currently using.

             Syntax:- redis-cli flushdb

  • FLUSHALL:- Removes the data from all the databases.

             Syntax:-redis-cli flushall

Suggest An Answer

No suggestions avaliable!