Skip to main content
Deletes an agent. A draft that never went live is removed. Any other agent is kept for the record: it is switched off, leaves every pipeline, its open plans stop and it stops working its contacts — and its activity still reads. Either way it no longer appears in the list.
Needs the agents:write scope.

Path parameters

Request

Response

200 OK — outcome is deleted (removed) or archived (kept for the record).

Errors

Every refusal is {"error": {"code", "message", "field"}}; field is there when one input is at fault. Any request can also be refused for its key, its account or its rate (key_required, invalid_key, account_suspended, plan_excludes_api, address_not_allowed, rate_limited); see the overview.