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.
public void delete()
Delete this item.Returns:
true if the operation was successful; false otherwise.Throws:
Please do not ask questions. If you need help or support, contact email@example.com. Questions, bug reports and feature requests will be deleted.
To check if an item is deleted, have to find out if it's stored in the Deleted Items folder:
Powered by JavaDocPlus