imap_delete_by_domain
Delete all emails from a specified domain to clean up unwanted newsletters or spam, with an optional dry run to preview what would be removed.
Instructions
Delete all emails from a specific domain. Useful for cleaning up unwanted newsletters or spam.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>",
"domain": "<domain>"
},
"name": "imap_delete_by_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain to delete emails from (e.g., "spammer.com") | |
| dryRun | No | If true, only report what would be deleted | |
| folder | No | Folder name | INBOX |
| accountId | Yes | Account ID |