HDEL
Since 1.1.0Hashes
Syntax
HDEL key field [field ...]Deletes fields from the hash at key. A hash left with no fields is deleted.
Reply
- The number of fields deleted; fields that did not exist are not counted.
Examples
> HSET u a 1 b 2
(integer) 2
> HDEL u a b nope
(integer) 2
> EXISTS u
(integer) 0