Skip to main content
DELETE
Retire, or permanently delete, an AI agent

Authorizations

hookie_session
string
cookie
required

The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.

Path Parameters

project_id
string
required
agent_id
string
required

Query Parameters

permanent
boolean
default:false

true removes the agent for good. Omitted, the agent is retired: active is set to 0 and the definition kept, so PATCH active:true brings it back.

Response

By default the agent is retired - active set to 0, still listed, and an agent_call step naming it fails until it is reactivated. With ?permanent=true the row is removed and it leaves listAiAgents; a step naming it then fails with not found.

ok
enum<boolean>
required
Available options:
true