Skip to main content
Version: v1.0.0(int)

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

HTTPcodeCondition
404not_foundNo such SKU.
409in_useSKU is referenced by a PO item, WO item, SO item, BOM, or FG-ledger entry.

Workflow

Calls W080 Delete SKU.