Skip to main content
Glama
leeguooooo
by leeguooooo

delete_emails

Remove unwanted emails by moving them to trash or permanently deleting them from one or multiple email accounts. Specify email IDs and account information for targeted cleanup.

Instructions

Delete one or more emails (move to trash or permanently delete). Provide account_id or email_accounts mapping so each UID can be routed to the right mailbox.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
email_idsYesList of email IDs to delete
folderNoSource folder (default: 'INBOX')INBOX
permanentNoPermanently delete instead of moving to trash
trash_folderNoTrash folder name (default: 'Trash')Trash
account_idNoSpecific account ID (recommended; required when not using email_accounts)
dry_runNoIf true, only validate without executing (default: false)
email_accountsNoOptional per-email account mapping for multi-account operations

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/leeguooooo/email-mcp-service'

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