---
title: "Delete a chat message"
method: DELETE
path: "/api/v5/ai-chat/messages/{message_id}"
tags: ["Ai Chat Messages"]
---

# Delete a chat message

`DELETE /api/v5/ai-chat/messages/{message_id}`

## Request

- Base URL: `https://api.pavlok.com`
- URL: `https://api.pavlok.com/api/v5/ai-chat/messages/{message_id}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/pavlok/apis/pavlok-api-v5/docs/api/v5/ai-chat/messages/:message_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete a specific chat message.

## Path parameters

- `message_id` integer, required: The ID of the message to delete

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pavlok/apis/pavlok-api-v5.md) - [All operations](https://skmtc.dev/pavlok/apis/pavlok-api-v5/llms.txt) - [OpenAPI document](https://skmtc.dev/pavlok/apis/pavlok-api-v5/revisions/3d192098b1ac?raw)
