Sign inGet started
Menu
TOOL REFERENCE / SOURCE GENERATEDMAILMAN MCP / MAIL

email_delete_message

Permanently destroys one message. It is not recoverable from trash and cannot be undone by anyone, including the user. Only call this when the user has asked for permanent deletion in those terms, and confirm first. For ordinary 'delete this email' requests use email_trash_message. confirm_permanent must be exactly true or nothing is deleted. Not every provider can do this safely — check can_permanently_delete on the account first, because an account without it returns PERMANENT_DELETE_NOT_SUPPORTED and the server will never quietly substitute a trash. idempotency_key is required.

Input fields

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "description": "The connected mailbox to act on, from email_accounts_list. Never guess this value and never reuse one across mailboxes — it selects both the credential and the permission set the call runs under."
    },
    "message_id": {
      "type": "string",
      "minLength": 1,
      "description": "A message id returned by this server (msg_...), not a provider id."
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 1,
      "description": "A unique value you generate for this attempt, e.g. a UUID. Retrying with the same key returns the original result instead of acting twice. Reusing a key with different arguments is an IDEMPOTENCY_CONFLICT."
    },
    "confirm_permanent": {
      "type": "boolean",
      "description": "Must be exactly true. This is the user's explicit acknowledgement that the message is being destroyed, not trashed. Anything else deletes nothing."
    }
  },
  "required": [
    "account_id",
    "message_id",
    "idempotency_key",
    "confirm_permanent"
  ]
}

Tool behavior

May change provider state. Check the explicit account, required access and provider capabilities before invoking.

Inspect isError and per-account errors. General write tools do not all enforce exact-plan approval. This reference does not certify any current AI client version.

YOUR AI POSTAL SYSTEM

YOUR INBOXES.
UNDER CONTROL.

Get started

Start with a free account and one read-only search. Existing accounts keep their connection.