Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Theme

Delete an automation

DELETE
/agents/automations/{automation_id}

Deletes the automation and prevents future invocations without deleting its target session.

Delete an automation

curl https://api.openai.com/v1/agents/automations/$AUTOMATION_ID \
    -X DELETE \
    -H 'OpenAI-Beta: agents=v1' \
    -H "Authorization: Bearer $OPENAI_API_KEY"
200 — Example
{
  "id": "id",
  "deleted": true,
  "object": "agent.automation.deleted"
}
Path Parameters
automation_id: string
minLength0
maxLength1048576
Returns
AutomationDeleted object { id, deleted, object }
id: string

The deleted automation ID.

minLength0
deleted: boolean

Always true.

object: "agent.automation.deleted" (default: "agent.automation.deleted")

Always agent.automation.deleted.

Returns Examples
200 — Example
{
  "id": "id",
  "deleted": true,
  "object": "agent.automation.deleted"
}