hdel

Removes fields from a hash.

[Redis documentation]


Query Syntax

HTTP

Copied to clipboard!
URL: http://kuzzle:7512/ms/_hdel/<_id>
Method: DELETE
Body:
Copied to clipboard!
{
  "fields": ["field1", "field2", "..."]
}

Other protocols

Copied to clipboard!
{
  "controller": "ms",
  "action": "hdel",
  "_id": "<key>",
  "body": {
    "fields": ["field1", "field2", "..."]
  }
}

Arguments

  • _id: hash key identifier

Body properties

  • fields: an array of hash fields to delete

Response

Returns the number of removed fields.

Copied to clipboard!
{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "hdel",
  "collection": null,
  "index": null,
  "result": 3
}