Core
API v1.x
1

deleteUser #

Deletes a user and all their associate credentials.


Query Syntax #

HTTP #

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

Other protocols #

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

Response #

Returns the deleted kuid.

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