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

# SCRIPT FLUSH

> Removes all scripts from the script cache.

## Arguments

<ParamField body="flush_type" type='"ASYNC" | "SYNC"' required>
  Whether to perform the flush asynchronously or synchronously.
</ParamField>

<RequestExample>
```py Example
redis.script_flush(flush_type="ASYNC")
```
</RequestExample>
