Skip to main content
Glama

delete_email

Remove unwanted emails from Outlook using the specified email and account IDs. Simplifies email management by enabling direct deletion through integrated Microsoft Graph API commands.

Instructions

Delete an email

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idYes
email_idYes

Implementation Reference

  • The 'delete_email' tool handler. Deletes the email by sending a DELETE request to Microsoft Graph API endpoint /me/messages/{email_id}. The @mcp.tool decorator handles registration and schema inference from type annotations.
    @mcp.tool def delete_email(email_id: str, account_id: str) -> dict[str, str]: """Delete an email""" graph.request("DELETE", f"/me/messages/{email_id}", account_id) return {"status": "deleted"}

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/elyxlz/microsoft-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server