cURL
curl --request DELETE \ --url https://api.leanmcp.com/api/chats/id/{id} \ --header 'Authorization: Bearer <token>'
{ "success": true, "message": "Chat deleted successfully", "deletedAt": "2025-06-16T20:00:00.000Z" }
Delete entire chat and all its messages using API key authentication. Requires CHAT scope.
Enter your LeanMCP API key
Chat ID
"c1a83d84-7154-464c-bd19-a9f10e0a067f"
Chat and all messages deleted successfully
Whether the operation was successful
true
Descriptive message
"Chat deleted successfully"
Timestamp of deletion
"2025-06-16T20:00:00.000Z"