Delete all action in Gmail package

Use the Delete all action to delete multiple emails from a Gmail mailbox based on specified filter conditions. Instead of permanently deleting emails, this action removes the Inbox label and applies the Trash label, effectively moving the matching emails to the Trash folder.

Considerations

An error is displayed if any of the following conditions are encountered when you deploy your automation to delete multiple emails:
  • Any of the input parameters that you have provided is invalid.
  • The session name that you have provided is invalid or does not exist.

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
  • Use the Status of the email to delete field to select one of the following radio buttons to specify the read status of the emails to be deleted:
    • Read
    • Unread
    • Both
  • (Optional) In the From specific labels field, enter one or more Gmail labels from which emails must be selected.

    You can also click the Insert a value icon to select an existing variable.

    Note: Only emails associated with the specified labels are evaluated.
  • (Optional) In the When subject contains field, enter a keyword or phrase that must be present in the email subject.

    You can also click the Insert a value icon to select an existing variable.

    Note: The filter matches emails whose subject contains the specified text.
  • (Optional) In the From specific senders field, enter the sender email addresses used to filter emails.

    You can also click the Insert a value icon to select an existing variable.

  • (Optional) Click the When received date is on or after drop-down menu to select a start date and time for filtering emails.

    You can select the System date and time, or click the Create variable icon to create a custom Datetime variable.

    Note: Only the emails received on or after this date are considered.
  • (Optional) Click the When received date is before drop-down menu and select the end date and time for filtering emails.

    You can select the System date and time, or click the Create variable icon to create a custom Datetime variable.

    Note: Only the emails received before this date are considered.