Skip to main content

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​

InputTypeRequiredDefaultWhat it is
FolderStringNoInboxFolder path.
Unread onlyBooleanNofalseOnly unread emails.
Subject containsStringNoOnly emails whose subject contains this text.
From containsStringNoOnly emails whose sender address or name contains this text.
Received afterDateTimeNoOnly emails received after this date and time.
Received beforeDateTimeNoOnly emails received before this date and time (G3).
With attachments onlyBooleanNofalseOnly emails that have attachments (G3).
Largest valueNumberNo500At most this many emails.
MailboxStringNoAnother mailbox open in the runner's Outlook profile (its name or address), e.g. a shared mailbox; empty for the user's own.

Outputs​

OutputTypeWhat it is
countNumberHow many emails were deleted.