FLUSHALL
Syntax
FLUSHALL
Module
genericCategories
dangerous keyspace slow writeDescription
Delete all the keys in all the existing databases. This command is always synchronous.
Examples
- Go (Embedded)
- CLI
In order to delete all the keys in all the databases, you need to pass -1 to the Flush
method:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
db.Flush(-1)
Flush all the databases:
> FLUSHALL