Arguments
str
required
The key to get.
*List[str]
required
One or more fields to delete.
Response
The number of fields that were removed from the hash.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
redis.hset("myhash", "field1", "Hello")
redis.hset("myhash", "field2", "World")
assert redis.hdel("myhash", "field1", "field2") == 2
Deletes one or more hash fields.
redis.hset("myhash", "field1", "Hello")
redis.hset("myhash", "field2", "World")
assert redis.hdel("myhash", "field1", "field2") == 2
Was this page helpful?