Skip to content
masterclass Buddy

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.

Subscribe
  • FLUSHALL
  • INFO
  • Redis.flushdb

Source: FLUSHDB - Upstash Documentation. Checked 2026-11-03.