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 kuidtenantId
: Tenant ID
Optional: #
refresh
: if set towait_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>",
}
}
Edit this page on Github(opens new window)