Permanently delete a chat conversation and all associated messages. This action cannot be undone.
Bearer token obtained from the authenticate endpoint.
Unique identifier of the chat to delete.
Response
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"
}