Actions53
- Account Actions
- Contact Actions
- Group Actions
- Message Actions
- Session Actions
Message → Delete Message
AI-generatedOverview
This node operation deletes a specific message in a WhatsApp session using the WasenderAPI. It is useful for scenarios where you need to programmatically remove messages, such as cleaning up chat history or retracting sent messages. For example, you can delete a message by providing its Message ID within a selected session.
Use Case Examples
- Delete a message by specifying the Message ID and session to remove unwanted or incorrect messages from a chat.
- Automate message deletion in workflows that manage WhatsApp communications.
Properties
| Name | Meaning |
|---|---|
| Session | Optionally select a WhatsApp session to use for the operation. If not provided, the session from the incoming item is used. |
| Auto Selected Session ID | Automatically uses the session ID from the incoming item if available. |
| Has Auto Selected Session | Indicates if there is an auto-selected session ID available from the incoming item. |
| Message ID | The ID of the message to delete. This is required to identify which message to remove. |
| Options | Additional request options such as retry behavior on failure and maximum retry attempts. |
Output
JSON
json- The JSON response from the WasenderAPI after deleting the message, typically confirming the deletion status.
Dependencies
- WasenderAPI service with API key credential
Troubleshooting
- Ensure the Message ID is provided and is a positive integer; otherwise, the node will throw an error indicating the Message ID is required.
- Verify that the session ID is correctly selected or provided, as the operation requires a valid session context.
- If the API returns errors like 408, 429, 500, 502, or 503, the node can retry requests based on the configured retry options; adjust these settings if persistent failures occur.