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
One or more keys to remove.
The number of keys that were removed.
Was this page helpful?