DeleteAttachment method: IBInfo class
Syntax
DeleteAttachment(Index | Content_ID)
Description
Use the DeleteAttachment method to remove the specified attachment from the message. You can either specify the number of the attachment, or the content ID associated with the attachment (generated when the attachment was added to the message with AddAttachment.)
If you want to clear all attachments, instead of a particular one, use the ClearAttachments methods instead.
Parameters
| Parameter | Description |
|---|---|
|
Index | Content_ID |
Specify either the number of the attachment, or the content ID associated with the attachment, for the attachment you want to delete. |
Returns
A Boolean value: true if the attachment was deleted successfully, false otherwise.