|Syntax:||Boolean = object.DeleteItem ( )|
Deletes a list of items matching the criteria specified in the Item Agent Object. Set the criteria to find a list of items that need to be deleted, such as Item IDs, ProjectIDs etc.
Call ItemAgent.DeleteItem Method to delete ALL items matching the criteria.
Note: There is no need to call ItemAgent.Execute before calling DeleteItem.
Item IDs can be set in a single comma-saperated string (e.g. "ITEM1,ITEM2,ITEM3") or in a loop
by assigning to ItemAgent.ItemID (e.g. ItemAgent.ItemID = sItemID(iCounter) )
See the example for more details.
Example 1: Delete a particular item
Example 2: Delete items specified in a comma saperated list
Example 2: Delete items specified in a loop