Delete a sent message
delete_messageDelete 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message_id": "<message_id>"
},
"name": "delete_message"
}
}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 |