Skip to main content

Delete Sub Tenant

DELETE 

/api/sub_account/:tenant_id

Delete a sub-tenant account. This will delete the tenant and all associated data.

Args: tenant_id: The ID of the sub-tenant to delete soft_delete: If True (default), soft delete; if False, hard delete web_context: Current user context (parent tenant) lead_service: Lead service dependency subaccount_service: Subaccount service dependency

Returns: Success status message

Raises: HTTPException: If deletion fails or sub-tenant not found

Request

Responses

Successful Response