Agents

Delete an agent

Changed on

Deletes a reusable agent. See agent configuration.

delete/agents/{agent_id}

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/agents/{agent_id}
  • Auth
    HTTP bearer

Path parameters

agent_idstring required

The ID of the reusable agent.

Response

The deleted agent.

idstring required

The ID of the deleted agent.

object'agent.deleted' required

The object type. Always agent.deleted.

deletedboolean required

Whether the agent was deleted. Always true.

Changes