Move a message to Trash
delete_messageMove a received message to the Trash folder so it can be recovered until the server empties it. If allow_delete is disabled, mark it as handled with mark_message.
Instructions
Move a received message to the Trash folder (recoverable there until the server empties it). Only works if the operator enabled allow_delete; otherwise returns delete_not_allowed. Use mark_message instead if you only want to mark it as handled. Returns { ok: true }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Message id from list_messages |