---
title: "Delete one saved chat"
method: POST
path: "/api/v1/tools/delete_chat"
---

# Delete one saved chat

`POST /api/v1/tools/delete_chat`

## Request

- Base URL: `https://whatsync.app`
- URL: `https://whatsync.app/api/v1/tools/delete_chat`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Owner-only and PERMANENT: remove every saved message, file and saved contact name for one QR chat from WhatSync (nothing is deleted on WhatsApp). stopSaving also skips that person, or unselects that group, so new messages are not saved. Only invoke when the user explicitly asks to delete this chat; confirm the conversation_id first with list_conversations.

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `idempotencyKey` string, required: Unique key for this intended action. Reuse exactly on retries; use a new key only for a new action.
  - `conversationId` string, required: conversation_id of a QR chat, such as 919876543210@s.whatsapp.net or 1203...@g.us
  - `stopSaving` boolean

## Response `200`

JSON result. Every response includes X-Request-Id.

- object

## Other responses

- `400`: API error
- `401`: API error
- `403`: API error
- `404`: API error
- `409`: API error
- `413`: API error
- `415`: API error
- `422`: API error
- `429`: API error
- `503`: API error

---

[API](https://skmtc.dev/whatsync/apis/whatsync-api.md) · [All operations](https://skmtc.dev/whatsync/apis/whatsync-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatsync/apis/whatsync-api/revisions/6fa5498b63b7?raw)
