Delete Item
m365_deleteDelete emails, mail folders, inbox rules, events, calendars, contacts, contact folders, or OneDrive items in Microsoft 365. Requires confirmation and returns recovery details.
Instructions
Delete one email, mail folder, inbox rule, event, calendar, contact, contact folder or OneDrive item. Always requires confirm=true after the user approves. Deleting a meeting you organise sends cancellations to its attendees. OneDrive items go to the recycle bin. Returns what happened and whether it can be recovered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Item ID. Aliases are not accepted. | |
| confirm | Yes | Must be true to delete this item; set only after the user approves. | |
| resource | Yes | Type of item. | |
| account_id | No | Account ID or email address. Omit when only one account is signed in. | |
| cancellation_message | No | event only: note sent with the cancellation when you organise the meeting. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| status | Yes | ||
| summary | Yes | One-line human summary. The tool's text content is this result serialized as JSON (summary included), so a client that ignores structuredContent still sees every field. | |
| resource | Yes | ||
| recoverable | Yes |