DeleteAll Method (BomItem)
- Last UpdatedNov 06, 2025
- 1 minute read
The DeleteAll() method deletes one or more BOM item records from the Bom_Item table, as specified by the filter parameters. Passing no filter parameters will delete all BOM item records from the table.
'Declaration
Public Shared Sub DeleteAll( _
ByVal sessionId As Integer, _
ByVal parentItemId As String, _
ByVal verId As String, _
ByVal bomPos As Nullable(Of Integer) _
)
'Usage
Dim sessionId As Integer
Dim parentItemId As String
Dim verId As String
Dim bomPos As Nullable(Of Integer)
BomItem.DeleteAll(sessionId, parentItemId, verId, bomPos)
public static void DeleteAll(
int sessionId,
string parentItemId,
string verId,
Nullable<int> bomPos
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- parentItemId
- Optional filter parameter. Holds the ID of an item being deleted.
- verId
Optional filter parameter. Holds the ID of a BOM version.
- bomPos
-
Optional filter parameter. Holds a 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.