Actions35
- Chat Actions
- Chatwoot Actions
- Group Actions
- Instance Actions
- Message Actions
- Webhook Actions
Chat → Delete Message From Me
AI-generatedOverview
This node operation deletes a specific message sent by the user from a WhatsApp chat. It requires identifying the message by its key object (which includes the remoteJid, fromMe flag, and message ID) and the message timestamp. This operation is useful for scenarios where a user wants to remove a message they have sent from their chat history, ensuring the message is deleted only if it was sent by the user's instance.
Use Case Examples
- Deleting a mistakenly sent message from a WhatsApp contact chat.
- Removing sensitive information sent in a message from the chat history.
Properties
| Name | Meaning |
|---|---|
| To (Contact) | The WhatsApp contact where the message should be deleted. Format: phone_number@s.whatsapp.net (e.g., 551199999999@s.whatsapp.net). |
| Key (JSON) | The message key object containing remoteJid, fromMe, and ID fields to identify the message to delete. |
| Message Timestamp | The timestamp of the message to delete (Unix timestamp in seconds). |
Output
JSON
status- The status of the delete operation, indicating success or failure.messageId- The ID of the message that was deleted.
Dependencies
- Requires an API key credential for MegaAPI WhatsApp service to authenticate requests.
Troubleshooting
- Common issues include providing an incorrect message key or timestamp, which will result in failure to delete the message.
- Error messages may indicate 'Unknown chat operation' if the operation parameter is incorrect, or authentication errors if API credentials are missing or invalid.
- Ensure the 'fromMe' field in the key is true, as this operation only deletes messages sent by the user's instance.