Delete Team
Soft-delete a workforce team. If the team has active team-dispatches (rows in work_order_team_dispatches with unassigned_at IS NULL), behavior depends on tenant setting team_soft_delete_with_active_dispatches_mode (read from tenant_dispatch_settings):
- block (default): returns 422 with the list of work-order numbers blocking deletion. Have the dispatcher unassign or complete those dispatches first.
- allow: team is soft-deleted; team-dispatch rows survive against the (now soft-deleted) team. Show Team Dispatch resolves the team via withTrashed().
- cascade_cancel: team is soft-deleted and each active team-dispatch is atomically unassigned (unassign_reason='team_deleted'), cancelling every non-terminal work_order_assignment row linked to those dispatches and firing TeamUnassigned per dispatch.
Headers
{{tenant_key_name}}
Response
Successful response

