curl -X DELETE https://api.60db.ai/agents/AGENT_ID \
-H "Authorization: Bearer your-api-key"
await client.agents.delete(agentId);
client.agents.delete(agent_id)
Agents
Delete Agent
Delete an agent. Its phone lines stay, detached from the agent.
DELETE
/
agents
/
{agentId}
curl -X DELETE https://api.60db.ai/agents/AGENT_ID \
-H "Authorization: Bearer your-api-key"
await client.agents.delete(agentId);
client.agents.delete(agent_id)
Delete an agent. Its phone lines are kept but detached (
agent_id becomes null). Existing calls and their recordings are not deleted. Deleting cannot be undone.
Request
Headers
string
required
Bearer token with your API key (scope
agents)Path
string
required
The agent
id (UUID)Response
200 OK{
"success": true,
"data": { "deleted": true }
}
Errors
| Status | Code | Meaning |
|---|---|---|
| 404 | AGENT_NOT_FOUND | No agent with this ID in your workspace |
| 502 | AGENTS_UPSTREAM_UNAVAILABLE | The call runtime could not remove its copy. The agent was not deleted. Retry shortly |
Example
curl -X DELETE https://api.60db.ai/agents/AGENT_ID \
-H "Authorization: Bearer your-api-key"
await client.agents.delete(agentId);
client.agents.delete(agent_id)