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
- 200
- 400
- 500
Deletion started; cleanup continues asynchronously.
Response Headers
Validation or authorization failure. Body is {"Message": " -
Response Headers
Backend failure. Body is {"Message": " -