Redis - Server Flushdb Command



Redis FLUSHDB deletes all the keys of the currently selected DB. This command never fails.

Return Value

String reply.

Syntax

Following is the basic syntax of Redis FLUSHDB command.

redis 127.0.0.1:6379> FLUSHDB

Example

redis 127.0.0.1:6379> FLUSHDB  
OK 
redis_server.htm
Advertisements