Delete a tenant
DELETE/v1/organizations/:organization_id/tenants/:tenant_id
Delete an existing tenant and deactivate the related organization. A tenant from the user's own organization cannot be deleted. A tenant cannot be deleted if the organization has more than one tenant.
Request
Responses
- 204
- 400
- 401
- 404
- 422
- 429
- 500
Tenant deleted successfully. The related organization has been deactivated. No content is returned in the response body.
Invalid request. Common causes: - Invalid path parameters - Invalid tenant ID format
Unauthorized: authentication required or user does not have permissions to delete the tenant. Also returned when attempting to delete a tenant from the user's own organization.
Tenant not found
Unprocessable entity: business logic validation error. Common causes: - Cannot delete a tenant with sub-tenants (organization has more than one tenant) - Cannot delete a tenant from its own organization
Too Many Requests
Internal Server Error