Actions13
Overview
This node connects to an IMAP email server to delete one or more emails from a specified mailbox. It is useful for automating email management tasks such as cleaning up inboxes or removing unwanted messages based on specific criteria. For example, it can be used to delete emails by their unique identifiers (UIDs) from the INBOX or any other mailbox folder.
Use Case Examples
- Delete a single email by specifying its UID in the INBOX mailbox.
- Delete multiple emails at once by providing a comma-separated list of UIDs in a specified mailbox.
Properties
| Name | Meaning |
|---|---|
| Credential Type | Selects the type of credentials to use for connecting to the IMAP server, either credentials from this node or from an existing N8N IMAP Trigger node. |
| Mailbox | Specifies the mailbox folder 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. Multiple UIDs can be provided as a comma-separated list. |
Output
JSON
json- Contains the result of the delete operation, including any errors if they occurred.
Dependencies
- Requires IMAP server credentials, which can be provided either directly in the node or via an existing IMAP Trigger node's credentials.
Troubleshooting
- Connection failures due to incorrect IMAP credentials or server settings. Verify credentials and server details.
- Errors when specifying invalid or non-existent email UIDs. Ensure the UIDs are correct and exist in the specified mailbox.
- Mailbox path errors if the mailbox does not exist or is incorrectly specified. Use the mailbox list mode to select valid mailboxes.
- Operation failures may produce error messages captured and logged by the node. Review logs for detailed error information.