Skip to main content

FLUSHALL

Syntax

FLUSHALL

Module

generic

Categories

dangerous keyspace slow write

Description

Delete all the keys in all the existing databases. This command is always synchronous.

Examples

In order to delete all the keys in all the databases, you need to pass -1 to the Flush method:

vault, err := echovault.NewEchoVault()
if err != nil {
log.Fatal(err)
}
vault.Flush(-1)