Skip to main content
Permanently delete a chat conversation and all associated messages. This action cannot be undone.
Authorization
string
required
Bearer token obtained from the authenticate endpoint.
chat_id
string
required
Unique identifier of the chat to delete.

Response

message
string
required
Confirmation message.
curl -X DELETE https://api.trellis.sh/v1/chats/chat_abc123 \
  -H "Authorization: Bearer YOUR_TOKEN"
import requests

response = requests.delete(
    "https://api.trellis.sh/v1/chats/chat_abc123",
    headers={"Authorization": "Bearer YOUR_TOKEN"}
)
result = response.json()
const response = await fetch("https://api.trellis.sh/v1/chats/chat_abc123", {
  method: "DELETE",
  headers: { Authorization: "Bearer YOUR_TOKEN" },
});
const result = await response.json();
{
  "message": "Chat deleted successfully"
}
{
  "detail": "Chat not found"
}