Represents deletion modes.
public enum class DeleteMode
public enum DeleteMode
Public Enum DeleteMode
|HardDelete HardDelete HardDelete||0||
The item or folder will be permanently deleted.
|MoveToDeletedItems MoveToDeletedItems MoveToDeletedItems||2||
The item or folder will be moved to the mailbox's Deleted Items folder.
|SoftDelete SoftDelete SoftDelete||1||
The item or folder will be moved to the dumpster. Items and folders in the dumpster can be recovered.
The MoveToDeletedItems and HardDelete options are transactional, which means that by the time a web service call completes, the database has moved the item to the Deleted Items folder or permanently removed the item from the Exchange database.
The SoftDelete option works differently for different target versions of Exchange Server. SoftDelete for Exchange 2007 sets a bit on the item that indicates to the Exchange database that the item will be moved to the dumpster folder at an indeterminate time in the future. SoftDelete for versions of Exchange starting with Exchange 2010, including Exchange Online, immediately moves the item to the dumpster. SoftDelete is not an option for folder deletion. SoftDelete traversal searches for items and folders will not return any results.