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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | No | Microsoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| ID | String | Yes | Email id. | |
| Permanent | Boolean | No | false | Remove permanently instead of moving to Deleted Items. |
| Mailbox | String | No | me | Mailbox: me, or a user's email address (needs application permission). |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |