I am developing an Outlook add-in using Office.js for an Exchange On-Premises server. Due to the limitations of Exchange On-Prem, the supported Office.js version is 1.5 or lower. Unfortunately, in Office.js v1.5, there is no built-in API to delete attachments from an email.
I explored the option of using Exchange Web Services (EWS) and found that the DeleteAttachment API works as expected when tested via SOAP UI. However, when attempting to call this API from the Outlook add-in using makeEWSRequestAsync, I discovered that Outlook only permits a restricted set of EWS operations. The DeleteAttachment API is not included in the allowed set of EWS operations that can be called via makeEWSRequestAsync.
Given these constraints, is there any way to delete an attachment from an email in an Exchange On-Premises environment via Office.js or any other workaround?
Would appreciate any guidance or alternative approaches to achieve this functionality.