Delete IMAP Email
Description
The Delete IMAP Email activity deletes an email from an IMAP mailbox using a configured Email Server connection.
Common settings
Use Process Data to bind supported inputs to workflow values or upstream outputs. See Common Activity Features for shared execution, error-handling, and output-persistence settings. Availability depends on the activity.
Design-Time Configuration
Display Text
The name displayed for this activity in the workflow.
Connection Name
The IMAP connection used to authenticate and connect to the target mailbox.
Mail Folder
The mailbox folder that contains the email to be deleted
(example: INBOX, Sent, Drafts).
Default value is INBOX.
Message Identifier
The unique IMAP message identifier (UID) of the email to delete. Use the MessageId output from the Read IMAP Email activity.
Execution settings
Configure Wait All Incoming when execution paths converge, and On Error for failure handling. Select Inherit where available to use the workflow-level error policy.
Output
Deleted Email
Returns the deleted email details (if found), including:
- From
- To
- Subject
- TextBody
- HtmlBody
- ReceivedAt
- MessageId
- InternalId
- Attachments
Example: Use a read result
Read messages with Read IMAP Email and iterate over Emails. Bind the current email's MessageId to Message Identifier. Use the same connection and mail folder that produced the message.
Delete only after the business processing that requires the message has completed.
Do not bind InternalId: it contains the Internet Message-ID header rather than the mailbox lookup key. See Message identifiers. An invalid UID, inaccessible folder, or failed message lookup raises an activity error.