Delete Emails Using the Archive Feature

The emails read by the Snap can be archived/moved to a specified target location using this Snap. In this example, the emails are moved to the Trash folder. The pipeline is as shown in the screenshot below:



The Email Reader Snap is configured as shown in the screenshot below:



The Archive messages after reading property is selected and the target folder is specified as the Trash folder. The email page displays the Inbox of the email account with an email. This email will be archived and moved to the Trash folder when the Snap is executed.

Below is a preview of the output from the Snap, it shows the body of the email along with other email attributes:

When refreshed, it can be seen that the Inbox is updated and the email is moved to the Trash folder.