# HDEL Removes the specified fields from the hash stored at `key`. Specified fields that do not exist within this hash are ignored. Deletes the hash if no fields remain. If `key` does not exist, it is treated as an empty hash and this command returns `0`. ## Examples HSET myhash field1 "foo" HDEL myhash field1 HDEL myhash field2 ## Return information {{< multitabs id="hdel-return-info" tab1="RESP2" tab2="RESP3" >}} [Integer reply](../../develop/reference/protocol-spec#integers): the number of fields that were removed from the hash, excluding any specified but non-existing fields. -tab-sep- [Integer reply](../../develop/reference/protocol-spec#integers): The number of fields that were removed from the hash, excluding any specified but non-existing fields.