Json

JSON.DEL

Delete a key from a JSON document.

Arguments

keybodystringrequired

The key of the json entry.

pathbodystringrequired

The path to delete. $ is the root.

Response

integerrequired

How many paths were deleted.

Example
await redis.json.del("key", "$.path.to.value");
Loading search…