> ## Documentation index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Search it with GET https://upstash.com/docs/search?q=<query>.
> Use these to discover all available pages before exploring further.

# FLUSHDB

<Warning>
Deletes all keys permanently. Use with caution!
</Warning>
## Arguments

<ParamField body="async" type="boolean">
  Whether to perform the operation asynchronously.
  Defaults to synchronous.
</ParamField>

<RequestExample>
```ts Sync
await redis.flushdb();
```
```ts Async
await redis.flushdb({async: true})
```
</RequestExample>
