---
title: "Delete a chat history"
method: POST
path: "/ai_assistant/delete_chat"
tags: ["AI Assistant"]
---

# Delete a chat history

`POST /ai_assistant/delete_chat`

## Request

- Base URL: `https://api.foudroyer.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.foudroyer.com/ai_assistant/delete_chat`
- Auth: HTTP bearer

Deletes a chat history by ID. The user must own the chat history and the associated website.

## Request body

- AiChatHistoryDeleteDto
  - `chat_id` string, required: Chat history ID to delete

## Response `200`

Chat history successfully deleted.

---

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