---
title: "Clear AI chat history"
method: POST
path: "/v1/ai/chat/{chat-id}/clear"
tags: ["AI Chat"]
---

# Clear AI chat history

`POST /v1/ai/chat/{chat-id}/clear`

Clear the conversation history of an AI chat session.

## Path parameters

- `chat-id` integer, required

## Response `204`

Chat history cleared successfully

## Other responses

- `400` — Invalid chat ID
- `401` — Unauthorized
- `403` — Access denied
- `404` — Chat session not found

## Changes

- **2026-09-17** `a203de7e5d7d` — 1 info
  - removed the non-success response with the status `503`
- **2026-09-17** `a81265c49fa9` — 1 info
  - added the non-success response with the status `503`

[Change history](https://skmtc.dev/netxms/apis/netxms-api/changes/v1/ai/chat/:chat-id/clear/post.md)

---

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