OpenWA icon

OpenWA

Interact with OpenWA WhatsApp API Gateway

Actions164

Chat → Delete

AI-generated

Summary

Delete a chat identified by its ID within a specified session, removing it from the WhatsApp account connected to that session.

Inputs

  • Session Name or ID (required) — The ID of the WhatsApp session from which to delete the chat. You can select it from the list of active sessions or specify it using an expression.
  • Chat Name or ID (required) — The unique identifier of the chat to delete (e.g., a phone number JID like '628123456789@c.us' or a group JID like '...@g.us'). Only the first 1000 chats are listed; for others, specify the chat ID via expression.

Output shape

a JSON object indicating success status.

The operation performs a chat deletion by sending a POST request carrying the chat ID; a successful deletion returns a response with a status indicating success. No paginated output; operates on a single chat per execution.

Examples

Example 1: Deleting a single chat by its ID within a specified session

Set 'Session Name or ID' to the relevant WhatsApp session and 'Chat Name or ID' to the chat to be deleted, then execute the node.

Links

Discussion