Delete a sent message
delete_messageDeletes a message the account sent so everyone in the chat sees "This message was deleted," working on messages sent within about two days. Follow it with message_status; use cancel_message for scheduled messages.
Instructions
Delete a message the account sent, for everyone in the chat, as the account holder would from their phone (the chat shows "This message was deleted"). Works on messages sent through Parley or from the phone, for about two days after sending. Paced like a reply; follow it with message_status. Still scheduled? Use cancel_message instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | No | The chat the message is in (chat_id from read_inbox). Not needed with an id send_message returned. | |
| message_id | Yes | The id send_message returned, or the message's id from read_inbox (one with from_me). | |
| connection_id | No | Which of your accounts: a connection id from list_connections, or the account's number. Optional when only one account fits. Left out, it's the account the message is on. | |
| idempotency_key | No |