Tenant Management
Manage tenant lifecycle operations. Tenants are isolated environments within the multi-tenant AuthSec platform, each with their own database, users, and configuration.
Delete Tenant
Permanently delete a tenant and all associated data. This operation is irreversible.
Endpoint: DELETE /uflow/admin/tenants/{tenant_id}
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Admin Bearer JWT token |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tenant_id | string | Yes | Tenant identifier |
Response
Success (200):
{
"message": "Tenant deleted successfully",
"tenant_id": "string"
}
Error Responses:
401- Unauthorized403- Forbidden - insufficient permissions404- Tenant not found
⚠️ Warning
This operation:
- Deletes the tenant database and all user data
- Removes all roles, permissions, and client configurations
- Cannot be undone
Required Permissions
- Must be a super admin or have tenant deletion privileges
- Operation is logged in the audit trail