Deletes an attachment. Using X00 will work for the messageID if the item view is showing.
AFTKN_ITEM_ATTACHMENT_DELETE or 666
VOID ItemAttachmentDelete(ANSISTRING MessageID; WORD Index)
Unique item identifier, returned by ItemMessageIDFromView().
Attachment index number (zero-based).