E095: Delete location
DELETE /api/locations/:id
Removes a fulfillment location that nothing references. Triggered from Settings, Fulfillment locations. The in-use check is broad: POs, WOs, SOs, and both inventory ledgers all block deletion.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Admin.
Request
No body.
Response — 200 OK
{ "deletedId": "uuid" }
Echo of the deleted location's id.
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such location. |
| 409 | in_use | Location is referenced by orders, inventory, or work orders. |
Workflow
Calls W095 Delete location.