delete-mail-folder
delete-mail-folderDelete a Microsoft 365 mail folder and all its contents permanently. Specify the folder by ID or well-known name to remove it from your mailbox.
Instructions
Delete the specified mailFolder. The folder can be a mailSearchFolder. You can specify a mail folder by its folder ID, or by its well-known folder name, if one exists.
š” TIP: Deletes a mail folder and all its contents. This action is irreversible. Use list-mail-folders to find the folder ID.
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 | |
| mailFolderId | Yes | Value for the 'mailFolderId' path segment. Pass it under the name 'mailFolderId', not as 'id'. Use the 'id' field of the mail folder 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 |