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 #

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

Other protocols #

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

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