Official Plugins (Kuzzle v2.x)
Multi Tenancy v1.x
2

delete #

Deletes a tenant's user.

See also security:deleteUser

User can only act on tenant they belongs.


Query Syntax #

HTTP #

URL: http://kuzzle:7512/_/multi-tenancy/tenant/:tenantId/user/:_id[?refresh=<refresh>]
Method: DELETE

Other protocols #

{
  "controller": "multi-tenancy/user",
  "action": "delete",

  "_id": "<kuid>",
  "tenantId": "<tenant ID>",
}

Arguments #

  • _id: User kuid
  • tenantId: Tenant ID

Optional: #

  • refresh: if set to wait_for, Kuzzle will not respond until documents are indexed

Response #

Returns the kuid of the user who have been deleted.

{
  "status": 200,
  "error": null,
  "action": "delete",
  "controller": "multi-tenancy/user",
  "requestId": "<unique request identifier>",
  "result": {
    "_id": "<kuid>",
  }
}