Delete
Overview
The Delete subroutine removes the current Attachment from its parent object collection
Syntax
Example
Example code snippet demonstrating how to delete an attachment:
vba
Dim MailerApp As New nlsMailer.Application
Dim newMailItem As MailItem
Dim newMailAttachment As Attachment
Set newMailItem = MailerApp.CreateItem(olMailItem)
Set newMailAttachment = newMailItem.Attachments.Add("C:\Users\Users\Documents\Test.txt")
newMailAttachment.Delete