Core
API v2.x
2

deleteUser #

Deletes a user and all their associate credentials.


Query Syntax #

HTTP #

URL: http://kuzzle:7512/users/<_id>[?refresh=wait_for]
Method: DELETE

Other protocols #

{
  "controller": "security",
  "action": "deleteUser",
  "_id": "<kuid>"
}

Arguments #

  • _id: user kuid to delete

Optional: #

  • refresh: if set to wait_for, Kuzzle will not respond until the user deletion is indexed (default: "wait_for")

Response #

Returns the deleted kuid.

{
  "status": 200,
  "error": null,
  "result": {
    "_id": "<kuid>",
  }
  "action": "deleteUser",
  "controller": "security",
  "requestId": "<unique request identifier>"
}