Actions19
- Email Actions
- Mailbox Actions
- Download Actions
Email → Delete
AI-generatedSummary
Delete emails from a specified IMAP mailbox by marking them with the \Deleted flag and then expunging them to remove from the server permanently.
Inputs
- Mailbox / Folder (required) — IMAP folder path to operate on, such as INBOX, Sent, or custom nested folders like Archive/2026.
- UIDs (required) — One or more unique identifiers for messages within the mailbox. Can be a single number, a comma-separated list (e.g., "1,5,9"), or a range (e.g., "100:200", "1:*") representing messages to delete.
Output shape
a single JSON object confirming deletion details
The output JSON includes flags indicating deletion success, whether expunge was completed, the UID sequence operated on, and the count of requested UIDs unless a wildcard range is used. Errors during the operation are reported, and the deletion is irreversible on most IMAP servers.