w3resource

Redis Server: FLUSHDB

FLUSHDB

Redis FLUSHDB command is used to delete all the keys of the currently selected DB. This command never fails.

Syntax:

FLUSHDB

Available since

1.0.0.

Return Value

String reply.

Return Value Type

String

Example: Redis FLUSHDB

redis 127.0.0.1:6379> FLUSHDB 
OK

Previous: FLUSHALL
Next: INFO



Follow us on Facebook and Twitter for latest update.