Zalo Message icon

Zalo Message

Send and manage Zalo messages via personal account

Delete Message

AI-generated

Summary

Delete a specified message in a Zalo chat thread, optionally restricting the deletion to only your view.

Inputs

  • Thread ID (required) — The unique identifier of the user or group chat thread where the message exists.
  • Thread Type (required) — Specifies whether the thread is a direct user message or a group chat.
  • Message ID (required) — The identifier of the message to be deleted.
  • Delete Only For Me — If true, deletes the message only on your side, leaving it visible to others; otherwise, deletes it for all participants.

Output shape

a list of JSON objects, each containing success status, operation name, and the API's deletion result for each processed item

Returns an array of results corresponding to each input item, with success or error details; supports error handling via continue-on-fail.

Examples

Example 1: Deleting a message for all participants

Set 'Thread ID' and 'Thread Type' to the chat where the message is. Provide the 'Message ID' of the message to delete. Leave 'Delete Only For Me' as false.

Example 2: Deleting a message visible only to you

Set the fields as above but set 'Delete Only For Me' to true to remove the message only from your view.

Links

Discussion