Skip to main content

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​

InputTypeRequiredDefaultWhat it is
FolderStringNoinboxFolder: a well-known name (inbox, sentitems, deleteditems, drafts, junkemail, archive), a path such as Inbox/Invoices, or a folder id.
StatusStringNoanyWhich emails: any, only unread or only read.
From containsStringNoSender contains this text; separate several with ; to match any of them.
Subject containsStringNoSubject contains this text; separate several with ; to match any of them.
SinceDateTimeNoReceived on or after this time (UTC).
BeforeDateTimeNoReceived before this time (UTC).
Maximum resultsNumberNo500At most this many emails.
SessionStringNoexchangeSession name of the open Exchange mailbox.
PermanentBooleanNofalseRemove them instead of moving them to Deleted Items.

Outputs​

OutputTypeWhat it is
countNumberHow many emails were deleted.