delete_event
Remove or cancel a calendar event in Microsoft Outlook by specifying the account and event IDs. Optionally send cancellations to attendees for efficient event management.
Instructions
Delete or cancel a calendar event
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| event_id | Yes | ||
| send_cancellation | No |
Implementation Reference
- src/microsoft_mcp/tools.py:583-593 (handler)The handler function for the 'delete_event' tool, decorated with @mcp.tool for automatic registration in FastMCP. It deletes a calendar event either by sending a cancellation (if send_cancellation=True) or permanent deletion using Microsoft Graph API endpoints.@mcp.tool def delete_event( account_id: str, event_id: str, send_cancellation: bool = True ) -> dict[str, str]: """Delete or cancel a calendar event""" if send_cancellation: graph.request("POST", f"/me/events/{event_id}/cancel", account_id, json={}) else: graph.request("DELETE", f"/me/events/{event_id}", account_id) return {"status": "deleted"}