> ## 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.

# FLUSHALL

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

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

<RequestExample>
```py Sync
redis.flushall()
```
```py Async
redis.flushall(flush_type="ASYNC")
```
</RequestExample>
