Upstash · Method
redis.flushdb
redis.flushdb() deletes every key in Upstash Redis. It is permanent; the optional async: true setting performs memory cleanup in the background.
Last updated
Syntax
redis.flushdb(options?: { async?: boolean }): Promise<string>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
FLUSHALLINFORedis.flushdb