Deletes a message, recipient, or attachment.
Syntax
object.Delete [ value ]
The Delete method syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
value | An integer expression specifying the item to delete, as described in Settings. |
Settings
The settings for value are:
Constant | Value | Description |
mapMessageDelete | 0 | Deletes all components of the currently indexed message, reduces the MsgCount property by 1, and decrements the index number by 1 for each message that follows the deleted message. |
If the deleted message was the last message in the set, this method decrements the MsgIndex property by 1. | ||
mapRecipientDelete | 1 | Deletes the currently indexed recipient. Automatically reduces the RecipCount property by 1, and decrements the index number by 1 for each recipient that follows the deleted recipient. |
If the deleted recipient was the last recipient in the set, this method decrements the RecipIndex property by 1. | ||
mapAttachmentDelete | 2 | Deletes the currently indexed attachment. Automatically reduces the AttachmentCount property by 1, and decrements the index by 1 for each attachment that follows the deleted attachment. |
If the deleted attachment was the last attachment in the set, this method decrements the AttachmentIndex by 1. |