Forum Discussion
Kapil
Apr 13, 2025Copper Contributor
How to Delete a Composing Email Attachment via Outlook Add-in?
Context: Server: Exchange Server 2019 on premise Client: OWA Category: Outlook Add-in Office JS API Set: Supported up to 1.5 only Problem Details: Delete an attachment added manually or throu...
GarrettRidge
Jun 12, 2025Iron Contributor
Delete the attachment in the mail being edited, you have to use the code Office.context.mailbox.item.removeAttachmentAsync(attachmentId), and you have to apply for read/write mailbox privileges in the plugin configuration file before you can do that.