Core
API v2.x
2

hdel #

Removes fields from a hash.

[Redis documentation]


Query Syntax #

HTTP #

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

Other protocols #

{
  "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.

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