Arguments
string
required
The key to get.
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: /docs/llms.txt
Use this file to discover all available pages before exploring further.
await redis.hdel(key, 'field1', 'field2');
// returns 5
Deletes one or more hash fields.
await redis.hdel(key, 'field1', 'field2');
// returns 5
Was this page helpful?