await redis.hdel(key, 'field1', 'field2'); // returns 5
Deletes one or more hash fields.
The key to get.
One or more fields to delete.
The number of fields that were removed from the hash.
Was this page helpful?