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

# SCRIPT FLUSH

> Removes all scripts from the script cache.

## Arguments

<ParamField body="options" type="Object">
  <ParamField body="async" type="boolean">
    Performs the flush asynchronously.
  </ParamField>

  <ParamField body="sync" type="boolean">
    Performs the flush synchronously.
  </ParamField>
</ParamField>

<RequestExample>
  ```ts Example theme={null}
  await redis.scriptFlush();
  ```

  ```ts With options theme={null}
  await redis.scriptFlush({
    async: true,
  });
  ```
</RequestExample>


## Related topics

- [SCRIPT FLUSH](/redis/commands/scripting/script-flush.md)
- [SCRIPT LOAD](/redis/commands/scripting/script-load.md)
- [EVALSHA](/redis/commands/scripting/evalsha.md)
- [Overview](/redis/sdks/ts/commands/overview.md)
