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

# JSON.FORGET

> Delete a key from a JSON document.

## Arguments

<ParamField body="key" type="string" required>
  The key of the json entry.
</ParamField>

<ParamField body="path" type="string" required>
  The path to forget. `$` is the root.
</ParamField>

## Response

<ResponseField type="integer" required>
  How many paths were deleted.
</ResponseField>

<RequestExample>
  ```ts Example theme={null}
  await redis.json.forget("key", "$.path.to.value");
  ```
</RequestExample>


## Related topics

- [JSON.FORGET](/redis/commands/json/json-forget.md)
- [JSON.DEL](/redis/commands/json/json-del.md)
- [Caching in Laravel with Redis](/redis/tutorials/laravel_caching.md)
- [Agent Memory with Redis Search](/redis/tutorials/agent_memory.md)
