> ## Documentation Index
> Fetch the complete documentation index at: https://upstash-dx-3081-agentkit-tanstack-ai-backends.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# FLUSHDB

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

## Arguments

<ParamField body="flush_type" type="&#x22;ASYNC&#x22; | &#x22;SYNC&#x22;">
  Whether to perform the operation asynchronously.
  Defaults to synchronous.
</ParamField>

<RequestExample>
  ```py Sync theme={null}
  redis.flushall()
  ```

  ```py Async theme={null}
  redis.flushall(flush_type="ASYNC")
  ```
</RequestExample>


## Related topics

- [FLUSHDB](/redis/sdks/ts/commands/server/flushdb.md)
- [FLUSHALL](/redis/commands/server/flushall.md)
- [Key-Based Locking](/redis/features/key-locking.md)
- [FCALL](/redis/commands/functions/fcall.md)
