WhatsApp Web API (WWebJS) icon

WhatsApp Web API (WWebJS)

Interact with WhatsApp Web API via WWebJS — send messages, manage sessions, chats, groups, contacts and channels

Chat → Clear Messages

AI-generated

Summary

Clear all messages from a WhatsApp chat

Inputs

  • sessionId (required) — Session identifier. Select from the list or use an expression. Falls back to credentials default if empty.
  • chatId (required) — Unique WhatsApp ID for the chat

Output shape

API response merged into workflow item JSON

Verified via source: POST /chat/clearMessages/{sessionId} with {chatId} body. No user-returned data shape declared for this operation in the source.

Examples

Example 1: Clear messages for a specific chat

Select a session, provide the target chat ID (e.g., 34612345678@c.us), and execute the operation.

Links

Discussion