Arguments
*List[str]
required
One or more keys to remove.
Response
The number of keys that were removed.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
redis.set("key1", "Hello")
redis.set("key2", "World")
redis.delete("key1", "key2")
assert redis.get("key1") is None
assert redis.get("key2") is None
Removes the specified keys. A key is ignored if it does not exist.
redis.set("key1", "Hello")
redis.set("key2", "World")
redis.delete("key1", "key2")
assert redis.get("key1") is None
assert redis.get("key2") is None
redis.set("key1", "Hello")
redis.set("key2", "World")
redis.delete("key1", "key2")
assert redis.get("key1") is None
assert redis.get("key2") is None
Was this page helpful?