await redis.json.clear("key");

Arguments

key
string
required
The key of the json entry.
path
string
default:"$"
The path to clear

Response

How many values were cleared.
await redis.json.clear("key");