Api / Agents

DELETE/v1/agents/:id

Auth: tenant — Status: stable

Remove a stored agent. Does not cascade to conversations that snapshotted its agent_def — those threads keep working off the snapshot. The agent's file scratchpad at ~/.arbiter/memory/t<tenant>/<agent_id>.md is also kept (tied to the id, not the catalog row).

Request

Path paramTypeDescription
idstringStored agent id. "index" is rejected.
curl -X DELETE \
  -H "Authorization: Bearer atr_…" \
  http://arbiter.example.com/v1/agents/researcher

Response

200 OK

{ "deleted": true }

Failure modes

StatusWhenBody
400:id == "index".{"error": "cannot delete the built-in master 'index'"}
401Missing / invalid bearer.{"error": "..."}
404No agent with this id for this tenant.{"error": "no agent '<id>' for this tenant"}

See also