Click or drag to resize

ItemServicesDeleteItem Method

Deletes an existing Item (if possible). Items that have been used in production and are related to traceability records may not be deleted. Also, Items that have children, or are themselves children of other Items may not be deleted.

Namespace:  FactoryLogix.xTend.Logistics
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public void DeleteItem(
	Guid sessionId,
	Guid itemId
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
itemId
Type: SystemGuid
An Item object representing the new item to be deleted.
Exceptions
ExceptionCondition
ArgumentExceptionThrown if the itemId is invalid.
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
NotFoundExceptionThrown if an Item matching the itemId parameter does not exist.
RelatedItemExceptionThrown if the item cannot be deleted because of existing relationships to other items or data structures.
See Also