SpyBara
Go Premium

resources/beta/subresources/agents/methods/delete/index.md 2026-09-10 18:01 UTC to 2026-09-11 20:00 UTC

This page contains 48 additions and 0 deletions.

2026
Fri 11 20:00 Fri 18 22:59

Delete an agent

delete /agents/{agent_id}

Deletes a reusable agent. See agent configuration.

Path Parameters

  • agent_id: string

Returns

  • AgentDeleted object { id, deleted, object }

    A deleted reusable agent.

    • id: string

      The ID of the deleted agent.

    • deleted: boolean

      Whether the agent was deleted. Always true.

    • object: "agent.deleted"

      The object type. Always agent.deleted.

      • "agent.deleted"

Example

curl https://api.openai.com/v1/agents/$AGENT_ID \
    -X DELETE \
    -H 'OpenAI-Beta: agents=v1' \
    -H "Authorization: Bearer $OPENAI_API_KEY"

Response

{
  "id": "id",
  "deleted": true,
  "object": "agent.deleted"
}