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:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
db.Flush(-1)