Arguments
string
required
The key of the json entry.
string
default:"$"
The path to clear
Response
The length of the array after the appending.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
await redis.json.clear("key");
await redis.json.clear("key", "$.my.key");
Clear container values (arrays/objects) and set numeric values to 0.
await redis.json.clear("key");
await redis.json.clear("key", "$.my.key");
Was this page helpful?