Delete Agent

Permanently delete an agent and all associated data.

DELETE/v2/agents/{public_id}

Soft-delete an agent. The agent is marked as deleted and no longer accessible.

Path Parameters

The agent's public ID (format: ag_*)

Path Parameters

ParameterTypeRequiredDescription
agent_idstringYesThe 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

On this page