Skip to main content

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​

InputTypeRequiredDefaultWhat it is
FolderStringNoINBOXMail folder; several separated by ; and * for any text, e.g. INBOX; Invoices/*.
Unread onlyBooleanNofalseOlder steps: only unread emails. New steps choose the status instead.
From containsStringNoSender contains this text; separate several with ; to match any of them.
Subject containsStringNoSubject contains this text; in double quotes ("Invoice 7") the whole subject must be exactly that; separate several with ; to match any of them.
SinceDateTimeNoReceived on or after this date.
BeforeDateTimeNoReceived before this date.
PermanentBooleanNofalseDelete for good instead of moving to Trash or Deleted Items.
ExpungeBooleanNotruePermanent mode: remove the emails now; when false they are only marked deleted until the session closes.
Read onlyBooleanNofalseOlder steps: only emails already read. New steps choose the status instead.
To containsStringNoA To recipient contains this text.
Body containsStringNoThe body contains this text (searched by the server).
SessionStringNomailSession name of the open mailbox.
StatusStringNoanyWhich emails: any, only unread or only read.

Outputs​

OutputTypeWhat it is
countNumberNumber of emails deleted.