delete_email
Delete an email by moving it to the Trash folder, with permanent deletion as fallback if Trash is unavailable.
Instructions
Delete an email (move to Trash).
Trash folder is discovered via the IMAP \Trash SPECIAL-USE attribute (RFC 6154) with fallbacks to common localized names. If no trash folder is found or copy fails, the email is permanently deleted.
Args: folder: Folder containing the email email_id: Email ID to delete
Returns confirmation of deletion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | ||
| email_id | Yes |