Delete emails
delete_emailMove messages to the Trash folder, as clicking Delete in Outlook or webmail does. They stay recoverable from Trash. All the messages must be in the SAME folder. Messages already in Trash are refused, because permanently deleting mail is a separate, explicitly named operation this tool does not perform. Pass every UID in one call rather than calling it once per message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | Yes | The UIDs to act on, from list_emails, search_emails or select_emails. Pass EVERY message you want changed in ONE call - this tool acts on the whole set in a single operation, and doing it that way costs the user one call instead of one per message. Up to 500 at a time. A single message is simply a one-element array. | |
| mailbox | No | IMAP folder name. Defaults to INBOX. |