Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

srem #

Removes members from a set of unique values.

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_srem/<_id>
Method: DELETE
Body:
{
  "members": ["member1", "member2", "..."]
}

Other protocols #

{
  "controller": "ms",
  "action": "srem",
  "_id": "<key>",
  "body": {
    "members": ["member1", "member2", "..."]
  }
}

Argument #

  • _id: set key identifier

Body properties #

  • members: list of member values to remove

Response #

Returns the number of removed members.

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