delete-mail-message
delete-mail-messageDelete an Outlook email message by its message ID, moving it to the Deleted Items folder. Use a soft delete to recover messages if needed.
Instructions
Delete an Outlook email message by its message ID. This is a soft delete that moves the message to Deleted Items.
š” 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 | Value for the 'messageId' path segment. Pass it under the name 'messageId', not as 'id'. Use the 'id' field of the message object as returned by Microsoft Graph. | |
| 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 |