Delete a chat
delete_chatRemove a WhatsApp chat from linked devices while keeping stored messages readable via list_messages. This action cannot be undone on the phone or Web.
Instructions
Delete a chat from the account's linked devices (the phone and WhatsApp Web). The messages wuapi stores are kept and still readable with list_messages. This cannot be undone on the devices.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>",
"chatId": "<chatId>",
"confirm": "<confirm>"
},
"name": "delete_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | The chat: a contact as E.164 with + (`+584241112233`) or `lid:<digits>`, or a group id (`...@g.us`). | |
| confirm | Yes | Must be true. The chat disappears from the phone. Only set it after the user asked for this or agreed to it. | |
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). | |
| deleteMedia | No | Also delete the chat's media files from the devices. |