Actions51
- API Actions
- Chat Actions
- Contact Actions
- Group Actions
- Instance Actions
- Message Actions
- Message Queue Actions
- Product Actions
- Status Actions
Message → Delete Message
AI-generatedSummary
Delete a WhatsApp message identified by its ID
Inputs
- Phone Number (required) — Contact number (or group ID) in international format, digits only.
- Message ID (messageId) (required) — WhatsApp message ID. For messages you sent, this is the code returned in the send response; for received messages, you get this ID via webhook.
- Am I the Sender of This Message? (Owner) (required) — Whether the message was sent by you (Z-API instance). Use false for messages received from contacts.
Output shape
Success confirmation or raw API response
If the API returns HTTP 204, a confirmation object with success:true and message is returned; otherwise the full response is returned. No additional body is guaranteed on success.
Examples
Example 1: Delete a sent message
phone: 5511999999999, messageId: D241XXXX732339502B68, owner: true
Example 2: Delete a received message
phone: 5511999999999, messageId: D241XXXX732339502B68, owner: false