Delete all emails
Delete every email in a folder that the filters find (Outlook moves them to Deleted Items).
Command in the Outlook desktop toolkit · id ooa.outlook_desktop/delete_all · 9 inputs, 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Folder | String | No | Inbox | Folder path. |
| Unread only | Boolean | No | false | Only unread emails. |
| Subject contains | String | No | Only emails whose subject contains this text. | |
| From contains | String | No | Only emails whose sender address or name contains this text. | |
| Received after | DateTime | No | Only emails received after this date and time. | |
| Received before | DateTime | No | Only emails received before this date and time (G3). | |
| With attachments only | Boolean | No | false | Only emails that have attachments (G3). |
| Largest value | Number | No | 500 | At most this many emails. |
| Mailbox | String | No | Another mailbox open in the runner's Outlook profile (its name or address), e.g. a shared mailbox; empty for the user's own. |
Outputs
| Output | Type | What it is |
|---|---|---|
| count | Number | How many emails were deleted. |