---
title: "Delete a chat"
method: DELETE
path: "/api/public/organizations/{orgId}/chats/{chatId}"
tags: ["Chats"]
---

# Delete a chat

`DELETE /api/public/organizations/{orgId}/chats/{chatId}`

## Request

- Base URL: `https://charts.basedash.com`
- URL: `https://charts.basedash.com/api/public/organizations/{orgId}/chats/{chatId}`
- Auth: HTTP bearer

Permanently deletes a chat and all of its messages, canceling any response that is still generating.

## Path parameters

- `orgId` string, required: Organization ID
- `chatId` string, required: Chat ID

## Response `204`

Chat deleted successfully

## Other responses

- `401`: Unauthorized - Missing or invalid API key
- `404`: Not found - Chat not found or no manage access
- `429`: Rate limit exceeded - Too many requests
- `500`: Internal server error

---

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