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.

deleteRole #

Deletes a security role.

An error is returned if the role is still in use.


Query Syntax #

HTTP #

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

Other protocols #

{
  "controller": "security",
  "action": "deleteRole",
  "_id": "<roleId>"
}

Arguments #

  • _id: role identifier

Optional: #

  • refresh: if set to wait_for, Kuzzle will not respond until the role deletion is indexed

Response #

Returns the deleted role identifier.

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