Actions13
Email → Delete
AI-generatedOverview
This node operation deletes one or multiple emails from a specified mailbox using the IMAP protocol. It is useful for automating email management tasks such as cleaning up inboxes or removing unwanted messages programmatically. For example, a user can specify the mailbox and the unique identifier(s) (UID) of the email(s) to be deleted, and the node will connect to the IMAP server to perform the deletion.
Use Case Examples
- Deleting a single email by specifying its UID in the INBOX mailbox.
- Deleting multiple emails at once by providing a comma-separated list of UIDs in a specified mailbox.
Properties
| Name | Meaning |
|---|---|
| Credential Type | Selects which IMAP credentials to use for authentication, either from this node or from an existing N8N IMAP Trigger node. |
| Mailbox | Specifies the mailbox containing the email(s) to delete. Can be selected from a list or provided as a full path string. |
| Email UID | The unique identifier(s) of the email(s) to delete. Supports a comma-separated list to delete multiple emails at once. |
Output
JSON
json- The result of the delete operation, including success or error information for each email processed.
Dependencies
- Requires IMAP credentials for authentication to the email server.
Troubleshooting
- Connection failures due to incorrect IMAP credentials or network issues. Verify credentials and network connectivity.
- Errors when specifying invalid mailbox paths or email UIDs. Ensure mailbox exists and UIDs are correct.
- Operation failures may throw errors caught and logged by the node; enabling debug mode can provide detailed logs for troubleshooting.