Json
JSON.FORGET
Delete a key from a JSON document.
await redis.json.forget("key", "$.path.to.value");
Arguments
key
string
requiredThe key of the json entry.
path
string
default: "$"The path to forget.
value
...TValue[]
requiredOne or more values to append to the array.
Response
How many paths were deleted.
await redis.json.forget("key", "$.path.to.value");