DEL
Delete Message
Delete a message for everyone in the chat.
API endpoint
https://waclient.com/api/delete_messageExample:
curl -X DELETE \
'https://waclient.com/api/delete_message' \
-H 'Content-Type: application/json' \
--data '{
"chat_id": "20100981XXXX",
"message_id": "ABC123",
"from_me": true,
"instance_id": "6A4B02A1XXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'Response
{
"status": "success",
"message": "Success",
"data": {
"chat_id": "[email protected]",
"message_id": "ABC123",
"deleted": true
}
}| Parameter | Description |
|---|---|
| chat_id | Chat JID or phone number |
| message_id | Message ID |
| from_me | Usually true for your messages |
| instance_id | Your instance ID |
| access_token | Your access token |