Core
API v2.x
2

srem #

Removes members from a set of unique values.

[Redis documentation]


Query Syntax #

HTTP #

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

Other protocols #

Copied to clipboard!
{
  "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.

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