We can use the two commands given below for emptying the database :
* FLUSHALL : It will remove the data from all databases. The syntax is given below :
* FLUSHDB : It will remove all the data from the database that is currently in use by the user. The syntax is given below :