Back to Yugabyte Db

FLUSHALL

docs/content/stable/yedis/api/flushall.md

2026.1.0.0-b25581 B
Original Source

Synopsis

FLUSHALL

This command deletes all keys from all databases.

This functionality can be disabled by setting the yb-tserver --yedis_enable_flush flag to false.

Return value

Returns status string.

Examples

sh
$ SET yuga1 "America"
"OK"
sh
$ SET yuga2 "Africa"
"OK"
sh
$ GET yuga1
"America"
sh
$ GET yuga2
"Africa"
sh
$ FLUSHALL
"OK"
sh
$ GET yuga1
(null)
sh
$ GET yuga2
(null)

See also

del, flushdb