Generic
DEL
Removes the specified keys. A key is ignored if it does not exist.
Arguments
keysbody*List[str]required
One or more keys to remove.
Response
intrequired
The number of keys that were removed.
Example
redis.set("key1", "Hello")redis.set("key2", "World")redis.delete("key1", "key2")assert redis.get("key1") is Noneassert redis.get("key2") is None