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