deleteServiceArea
Stop serving a territory
Soft-deletes the service area: it disappears from listServiceAreas and stops counting for coverage immediately. Technician assignments to it are left in place but no longer grant coverage.
The consequence is easy to underestimate: technicians whose only coverage was this area become unmatchable for addresses inside it. Jobs already assigned keep their technician, but any re-plan (reassign, board move, confirm of a pending job, the slot picker) can find no feasible crew there. Before deleting, re-check listCrewCandidates on upcoming jobs in that territory.
If you are reshaping coverage rather than withdrawing from it, edit the polygon or postal/city fields with updateServiceArea instead; that keeps the area and its technician assignments working.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "deleteServiceArea"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Service Area ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The response payload. Omitted on error unless the error carries structured data. | |
| errors | No | Field-level validation details; present only for VALIDATION_ERROR responses. | |
| message | No | Human-readable message ("Success" or an error description), localized via the X-Locale header. | |
| error_code | No | 0 on success; a stable string error code on failure (e.g. CUSTOMER_NOT_FOUND). |