Delete an email
delete_emailMove an email message to the Trash folder without permanently deleting it, allowing recovery if needed.
Instructions
Move a message to Trash. Requires EMAIL_ALLOW_DELETE=true.
This is a move, not an expunge, so the user can still recover the message from their Trash folder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | IMAP UID of the message. | |
| folder | No | Folder the message is in. | INBOX |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| action | Yes | What was done, e.g. 'moved' or 'marked read'. | |
| detail | No | ||
| folder | Yes |