Delete email
delete_emailDelete an email by moving it to Trash, or set permanent=true to skip Trash and delete it irreversibly. Use a real mailbox folder; if the email is in a virtual folder, locate the real folder first.
Instructions
Delete an email. By default moves to Trash. Set permanent=true for permanent deletion (⚠️ irreversible). The mailbox must be a real folder. Use find_email_folder first if the email was found in a virtual folder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account name from list_accounts | |
| emailId | Yes | Email ID to delete (from list_emails) | |
| mailbox | No | Mailbox containing the email | INBOX |
| permanent | No | ⚠️ Permanently delete (skip Trash) |