Actions5
- Message Actions
- Reaction Actions
Message → Delete
AI-generatedSummary
Delete a specific message from a Zalo user or group chat by providing the message ID, thread ID, and thread type.
Inputs
- Thread ID (required) — The ID of the recipient user or group where the message exists.
- Thread Type (required) — The type of thread where the message is located, either a user direct message (DM) or a group chat.
- Message ID (required) — The unique identifier of the message to delete.
Output shape
a list of JSON objects representing the result of each deletion attempt per input item
Each output item contains at least a 'success' boolean indicating if the deletion was successful and includes the related resource, operation, threadId, and any API response data. On failure, the output item contains 'success' as false and an 'error' message. Errors stop execution unless 'continueOnFail' is enabled, which allows continuing processing subsequent items.
Examples
Example 1: Deleting a message from a user DM conversation.
Set 'Thread ID' to the user's ID, 'Thread Type' to 'User', and specify the 'Message ID' to delete.
Example 2: Deleting a message from a group chat.
Set 'Thread ID' to the group ID, 'Thread Type' to 'Group', and specify the 'Message ID' to delete.