Official Plugins (Kuzzle v2.x)
multi-tenancy v1.x
2

delete #

Deletes a tenant.

Profile still assigned to users will not be deleted.


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/_/multi-tenancy/tenants/:group/:name
Method: DELETE

Other protocols #

Copied to clipboard!
{
  "controller": "multi-tenancy/tenant",
  "action": "delete",

  "group": "teacher",
  "name": "liia"
}

Arguments #

  • group: Tenant group
  • name: Tenant name

Response #

Returns an object containing the following properties:

  • index: name of the deleted index
  • profiles: list of deleted profiles
Copied to clipboard!
{
  "status": 200,
  "error": null,
  "action": "delete",
  "controller": "multi-tenancy/tenant",
  "requestId": "<unique request identifier>",
  "result": {
    "index": "tenant-teacher-liia",
    "profiles": ["admin", "user", "moderator"]
  }
}