Delete Method (BomItem)
- Last UpdatedNov 06, 2025
- 1 minute read
The Delete() method deletes the specified BOM item record from the Bom_Item table.
public static void Delete(
int sessionId,
string parentItemId,
string verId,
int bomPos,
string modId
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- parentItemId
- Required. Holds the ID of the item being deleted.
- verId
Required. Holds the ID of the BOM version.
- bomPos
Required. Holds the BOM position. For by-products, this value is negative. For produced items, the BOM position is 0, and the item_id is the same as the parent_item_id. The BOM position is usually in a sequence.
- modId
Required. Holds a modification ID value to avoid data contention. The passed value must match the record's modification ID value for the record to be deleted.