The delete() method moves the item to the Trash folder.
Use the method ItemsCollection.remove(int index) to remove the item from the folder without moving it to the Trash.
API Reference
| Classic JavaDoc |
OutlookItem.delete
public void delete()
Delete this item.Returns:
true if the operation was successful; false otherwise.
Throws:ComponentObjectModelException |
Community comments
To check if an item is deleted, have to find out if it's stored in the Deleted Items folder: private static boolean isDeleted(Outlook outlook, OutlookItem item) |
Powered by JavaDocPlus