Delete message
POST
/waInstance{{idInstance}}/deleteMessage/{{apiTokenInstance}}The method deletes a message from a chat.
To display deleted messages in the journal, you need to enable the webhook "deletedMessageWebhook": "yes" with method setSettings.
Documentation DeleteMessage
Request
Body Params application/json
chatId
string
required
idMessage
string
required
Example
{
"chatId": "120363043968066561@g.us",
"idMessage": "BAE5F4886F6F2D05"
}
Request samples
Responses
deleteMessage(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
ExampledeleteMessage
//The response body is empty. If successful, the server response is 200.
Last modified: 19 days ago