delete_email
Remove unwanted emails by moving them to Trash or permanently expunging them. Specify the email UID and folder.
Instructions
Delete a message. Soft-delete by default (moves to Trash).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| folder | No | INBOX | |
| account | No | ||
| permanent | No | If false (default), move to Trash. If true, expunge in place. | |
| trash_folder | No | INBOX.Trash |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| uid | Yes | ||
| folder | Yes | ||
| account | Yes | ||
| permanently_deleted | Yes | True if hard-deleted (Expunge). False if only moved to Trash. |