Delete all matching emails
Delete every email in one or more folders that matches the filters (all emails when no filter is set).
Command in the Email toolkit · id ooa.email/delete_all · 13 inputs, 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Folder | String | No | INBOX | Mail folder; several separated by ; and * for any text, e.g. INBOX; Invoices/*. |
| Unread only | Boolean | No | false | Older steps: only unread emails. New steps choose the status instead. |
| From contains | String | No | Sender contains this text; separate several with ; to match any of them. | |
| Subject contains | String | No | Subject contains this text; in double quotes ("Invoice 7") the whole subject must be exactly that; separate several with ; to match any of them. | |
| Since | DateTime | No | Received on or after this date. | |
| Before | DateTime | No | Received before this date. | |
| Permanent | Boolean | No | false | Delete for good instead of moving to Trash or Deleted Items. |
| Expunge | Boolean | No | true | Permanent mode: remove the emails now; when false they are only marked deleted until the session closes. |
| Read only | Boolean | No | false | Older steps: only emails already read. New steps choose the status instead. |
| To contains | String | No | A To recipient contains this text. | |
| Body contains | String | No | The body contains this text (searched by the server). | |
| Session | String | No | mail | Session name of the open mailbox. |
| Status | String | No | any | Which emails: any, only unread or only read. |
Outputs
| Output | Type | What it is |
|---|---|---|
| count | Number | Number of emails deleted. |