wsi.deleteAll();
}
else if (wft.isItemInWorkflow(context, item))
{
InProgressSubmission wfi = wft.getWorkflowItem(context, item);
wfi.deleteWrapper();
}
// then delete the item
Collection[] collections = item.getCollections();
for (Collection collection : collections)