Server

FLUSHDB

Deletes all keys permanently. Use with caution!

Arguments

flush_typebody"ASYNC" | "SYNC"

Whether to perform the operation asynchronously. Defaults to synchronous.

Sync
redis.flushall()
Async
redis.flushall(flush_type="ASYNC")
Loading search…