---
title: "Delete a chat"
method: DELETE
path: "/api/v1/chats/{chat_id}"
tags: ["chats"]
---

# Delete a chat

`DELETE /api/v1/chats/{chat_id}`

## Request

- Base URL: `https://api.izap.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.izap.ai/api/v1/chats/{chat_id}`
- Auth: HTTP bearer

Deletes the conversation. Deleting one that is already deleted returns `410`.

## Path parameters

- `chat_id` string, required

## Response `200`

Successful Response

- DeleteChatResponse
  - `message` string, required
  - `deleted_at` string, nullable
  - `can_be_restored` boolean

## Other responses

- `401`: Missing or invalid credentials.
- `403`: The free plan does not allow deleting chats.
- `404`: The resource, or the business named in the request, does not exist.
- `410`: The chat is already deleted.
- `422`: Validation Error
- `default`: Unexpected error.

---

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