Delete Email
AI-generatedSummary
Delete an email by its UID from a specified mailbox folder using IMAP.
Inputs
- Mailbox / Folder (required) — The mailbox folder containing the email to delete (default is 'INBOX').
- Email UID (required) — The UID of the email to delete.
- Options — Optional connection settings such as connection timeout, debug logging, login method, certificate error handling, retries, and TLS usage to customize the IMAP connection.
Output shape
a list with a single JSON object indicating success and deletion status
The output JSON includes 'success' (boolean) to confirm the operation and 'deleted' indicating whether the email was successfully deleted. If the operation fails, it retries according to the configured options before throwing an error.
Examples
Example 1: Delete an email with UID '1234' from the INBOX mailbox, ignoring TLS certificate errors and enabling 3 retries on connection errors.
Set 'Mailbox / Folder' to 'INBOX', 'Email UID' to '1234', and optionally under 'Options' keep defaults or adjust retry counts and timeouts as needed.