---
title: "POST /api/bom-lines/delete"
method: POST
path: "/api/bom-lines/delete"
tags: ["Products/BOM-Lines"]
---

# POST /api/bom-lines/delete

`POST /api/bom-lines/delete`

Remove components from a BOM. `styleId` here is the product whose BOM is being edited (the owning product, not the component) — the same role `entity` plays on create and update. Deleting through a product that only inherits the BOM forks a private copy first, leaving the parent untouched.

## Request body

- object
  - `bomLineIds` string[], required
  - `styleId` string, required — The product whose BOM you are deleting from (the owning product, not the component) — either the Retraced ID or your own externalId. Deleting through a product that only inherits the BOM forks a private copy first, so the parent keeps its lines.

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `deletedLines` string[], required — IDs of successfully deleted BOM lines
    - `duplicatedHeaders` object[], required — Details of headers that were duplicated for child entities
      - `originalHeaderId` string, required
      - `newHeaderId` string, required
      - `forEntityId` string, required
      - `entityType` 'style' | 'variant' | 'sku', required
    - `orphanedHeaders` string[], required — IDs of headers that were cleaned up
    - `errors` object[], required — Errors encountered during deletion process
      - `bomLineId` string, required
      - `error` string, required

---

[API](https://skmtc.net/retraced/apis/api-reference.md) · [All operations](https://skmtc.net/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/retraced/api-reference/revisions/60d6c901bc4e/schema)
