Skip to main content
curl -X DELETE https://api.thinnest.ai/v2/agents/{public_id} \
  -H "Authorization: Bearer $THINNESTAI_API_KEY"

Path Parameters

agent_id
string
required
The agent’s public ID (ag_*)

Response 204

No content. The agent has been permanently deleted.
Warning: This action is irreversible. All agent data including configuration, knowledge sources, API keys, and conversation history will be permanently removed.

What Gets Deleted

ResourceDeleted
Agent configurationYes
Attached knowledge sourcesYes
Agent API keysYes
Conversation historyYes
Call recordingsYes
Billing recordsNo (retained for auditing)

Errors

CodeDescription
401Missing or invalid authentication
403Not authorized to delete this agent
404Agent not found