Delete all emails
Delete every email of a folder that the filters find (G5).
Command in the Exchange (EWS) toolkit · id ooa.exchange/delete_all · 9 inputs, 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Folder | String | No | inbox | Folder: a well-known name (inbox, sentitems, deleteditems, drafts, junkemail, archive), a path such as Inbox/Invoices, or a folder id. |
| Status | String | No | any | Which emails: any, only unread or only read. |
| From contains | String | No | Sender contains this text; separate several with ; to match any of them. | |
| Subject contains | String | No | Subject contains this text; separate several with ; to match any of them. | |
| Since | DateTime | No | Received on or after this time (UTC). | |
| Before | DateTime | No | Received before this time (UTC). | |
| Maximum results | Number | No | 500 | At most this many emails. |
| Session | String | No | exchange | Session name of the open Exchange mailbox. |
| Permanent | Boolean | No | false | Remove them instead of moving them to Deleted Items. |
Outputs
| Output | Type | What it is |
|---|---|---|
| count | Number | How many emails were deleted. |