delete-mail-message
delete-mail-messageDelete an email message from the mailbox. Moves the message to Deleted Items on first delete; a second delete removes it permanently.
Instructions
Delete eventMessage.
š” TIP: Soft delete ā moves to Deleted Items. To permanently delete, delete again from Deleted Items.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | For destructive operations when the confirm gate is enabled (MS365_MCP_REQUIRE_CONFIRM=true; off by default). Set to true only after the user has explicitly approved this action. When the gate is on, calls without confirm: true return { error: "confirmation_required" } without touching user data. | |
| If-Match | No | ETag | |
| messageId | Yes | Path parameter: messageId | |
| includeHeaders | No | Include response headers (including ETag) in the response metadata | |
| excludeResponse | No | Exclude the full response body and only return success or failure indication |