Delete action in Gmail package
- Updated: 2026/04/21
Delete action in Gmail package
Use the Delete action to remove an email and move it to the Trash folder in the your Gmail mailbox. This action operates on the current email being processed in a Gmail Loop action.
Considerations
An error is displayed if any of the following conditions are encountered when you
deploy your automation to delete an email:
- The specified Gmail session does not exist.
- The session has expired or is disconnected.
- The action is used outside the Gmail Loop context.
- You do not have the necessary permission to modify the email status.
Settings
Select the Gmail session using one of the following options:- Session name: To select an existing Gmail session by name.
- Variable: Select a variable of type Session with sub-type Gmail
Note: Ensure that the session is created using the Gmail
Connect
action before it can be used.