Skip to main content

Delete email

Delete an email by moving it to Deleted Items, or remove it permanently.

Command in the Microsoft 365 toolkit · id ooa.microsoft365/delete_mail · 5 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
IDStringYesEmail id.
PermanentBooleanNofalseRemove permanently instead of moving to Deleted Items.
MailboxStringNomeMailbox: me, or a user's email address (needs application permission).
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.