DeleteMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents deletion modes.
public enum class DeleteMode
public enum DeleteMode
Public Enum DeleteMode
- Inheritance
-
DeleteMode
Fields
Name | Value | Description |
---|---|---|
HardDelete | 0 | The item or folder will be permanently deleted. |
SoftDelete | 1 | The item or folder will be moved to the dumpster. Items and folders in the dumpster can be recovered. |
MoveToDeletedItems | 2 | The item or folder will be moved to the mailbox's Deleted Items folder. |
Remarks
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.