Empty Junk
emptyJunkPermanently deletes all messages in Junk and subfolders for one or all accessible accounts, skipping Trash with no undo, and returns the deleted count per account.
Instructions
Permanently delete all messages in Junk and its subfolders, for one account or, without accountId, every account MCP clients may use; they skip Trash, no undo. Review first with getRecentMessages; only some: deleteMessages. Returns the count deleted per account.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "emptyJunk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | No | Account ID (from listAccounts). If omitted, empties Junk for all accessible accounts. |