Skip to main content
DELETE
Delete entire chat
Auth: TokenAccount or TokenInstanceRate-limit: Global (100/min) • Idempotent: yes Removes a chat (conversation) from your WhatsApp list. Optionally also deletes the locally stored media files.
Local operation only. Other participants (in groups) or the recipient (in DMs) keep seeing the history on their side. To leave a group, use DELETE /api/group/leave.

Examples

Keep media local

Removes the chat from the WhatsApp list but preserves the media files stored locally (S3/disk). Useful when you still want to keep attachments for auditing or reprocessing.

Delete media too

With deleteMedia: true, in addition to removing the chat the server also deletes the media files stored locally for that conversation. Irreversible on the RyzeAPI side.

Success response

200 OK
The message changes depending on deleteMedia:
  • false"Chat deleted successfully"
  • true"Chat deleted successfully (including media)"

Path parameters

string
required
Instance name.

Headers

string
required
TokenAccount or TokenInstance.

Request body

string
required
Number (5511999999999) or JID (5511999999999@s.whatsapp.net, ...@lid, 120363...@g.us) of the chat.
boolean
default:"false"
If true, also removes the media files stored locally for this chat.

Notes

  • The chat disappears from your list on every linked device (synced via AppState).
  • In groups, deleting the chat does not leave the group, the group link remains.
  • The phone’s WhatsApp has independent storage; deleteMedia here only affects the media saved by RyzeAPI on S3/disk.

Error responses