E080: Delete SKU
DELETE /api/skus/:id
Removes a SKU if nothing references it. Triggered from SKU Detail. PO items, WO items, SO items, BOMs (as output or input SKU), and the FG ledger all block deletion. Archiving via PATCH isActive=false (E079) is the routine path.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Admin.
Request
No body. Hard delete — blocked while the SKU is referenced.
Response — 200 OK
{ "deletedId": "uuid" }
Echo of the deleted SKU's id.
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such SKU. |
| 409 | in_use | SKU is referenced by a PO item, WO item, SO item, BOM, or FG-ledger entry. |
Workflow
Calls W080 Delete SKU.