FLUSHALL

This page documents the preview (v2.21) version. Preview includes features under active development and is for development and testing only. For production, use the stable (v2024.1) version.

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

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

See also

del, flushdb