IMAP icon

IMAP

Retrieve emails via IMAP

Email → Delete

AI-generated

Summary

Permanently delete one or more emails from the selected IMAP mailbox by UID. Choose a mailbox and enter one UID or a comma-separated list; the operation opens the mailbox for changes and returns the supplied UID value with deleted: true when the request succeeds.

Inputs

  • Credential Type — Choose this node's IMAP credentials (default) or credentials from an n8n IMAP Trigger node.
  • Mailbox (required) — Select the mailbox containing the emails, or enter its full path. Defaults to INBOX.
  • Email UID (required) — UID of the email to delete; enter comma-separated UIDs to delete multiple emails.

Output shape

A single item for each input item, with JSON fields uid and deleted.

uid contains the supplied UID value, including a comma-separated value if provided; deleted is true after the IMAP delete call succeeds. Failures raise an operation error unless the workflow is configured to continue on fail.

Links

Discussion