Excel Add-In for Microsoft Exchange

Build 25.0.9434

DeleteAttachment

Removes a specified attachment from an email or message item, supporting cleanup and content modification operations.

Input

Name Type Required Description
MessageId String True The unique identifier of the email message from which an attachment will be deleted. Required to locate the correct message item.
AttachmentID String True The unique identifier of the specific attachment to delete from the message. This must correspond to an existing attachment on the message.
UserId String False The identifier of the impersonated user under whose context the delete operation will be executed. Used in scenarios where delegated access is required.

Result Set Columns

Name Type Description
Success String Indicates whether the attachment deletion operation completed successfully. Returns true if the attachment was removed; false if an error occurred.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434