Delete Email
delete_emailMove an email to Trash, keeping it recoverable. Requires confirmed: true. Specify sourceFolder for non-INBOX emails.
Instructions
Delete an email by MOVING it to Trash — mail is never permanently deleted and stays recoverable from Trash. An email already in Trash is left in place. Requires { confirmed: true }. Pass sourceFolder whenever the UID came from a folder other than INBOX.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailId | Yes | ||
| confirmed | No | Must be true to execute. See requireDestructiveConfirm. | |
| sourceFolder | No | Folder the UID(s) live in (e.g. INBOX, Folders/Work, Labels/Foo). Strongly recommended whenever the UIDs came from a folder other than INBOX — IMAP UIDs are folder-scoped, so without this the wrong folder may be selected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| messageId | No | ||
| reason | No |