Delete messages
Messages
Delete messages
Delete a sent or received message from a chat
DELETE
Delete messages
Documentation Index
Fetch the complete documentation index at: https://developer.z-api.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Method used to delete a message from a chat. You can delete both a message you sent and a message sent by a contact. To use this feature you only need the messageId of the message you want to delete.Attributes
Header
Your instance ID. Available in the Z-API panel under Instances.
Your Z-API instance token.
Query Parameters
Original message ID
Recipient/sender phone number (or group ID for group messages) in DDI DDD NUMBER format. E.g.: 551199999999
Set to
true if you sent the message or false if it was a received message