Skip to main content
 print this page

Delete a custom AI agent

DELETE 

/ai/agents/:id

Starts deletion of a CUSTOM agent. Caller must be owner. SYSTEM agents cannot be deleted (AI-1002). Agents whose AgentStatus ends with ING (CREATING, UPDATING, DELETING) cannot be deleted (AI-1002). Agents attached to AI projects must be detached first (AI-1003). On success the API sets AgentStatus to DELETING, returns 200, and continues IAM/runtime/S3 cleanup asynchronously. Caller must send a valid role_id. Requires AICore enabled.

Request

Responses

Deletion started; cleanup continues asynchronously.

Response Headers
    Access-Control-Allow-Origin
    Access-Control-Allow-Methods
    Access-Control-Allow-Headers