API ReferenceAgents
Delete Agent
Delete an agent.
Delete an agent.
The agent disappears from list/detail responses, but its historical runs remain readable so usage and billing data stay accurate.
Rejected with 409 if any build on the agent is still pending or running;
cancel it first. The agent's slug and name are freed for reuse once deleted.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Path Parameters
agent_id*Agent Id
Header Parameters
X-API-Key?string|null
Response Body
application/json
application/json
curl -X DELETE "https://api.levainlabs.com/api/v1/agents/string"{
"property1": "string",
"property2": "string"
}