---
title: "Delete an agent"
method: DELETE
path: "/agents/{agent_id}"
tags: ["Agents"]
---

# Delete an agent

`DELETE /agents/{agent_id}`

Deletes a reusable agent. See [agent configuration](https://developers.openai.com/api/docs/guides/agents-api/configuration).

## Path parameters

- `agent_id` string, required

## Response `200`

The deleted agent.

- DeletedAgentResource — A deleted reusable agent.
  - `id` string, required — The ID of the deleted agent.
  - `object` 'agent.deleted', required — The object type. Always `agent.deleted`.
  - `deleted` boolean, required — Whether the agent was deleted. Always `true`.

## Other responses

- `400` — The request was invalid.
- `401` — Authentication or project context was missing.
- `403` — The API key lacks the required permission.
- `404` — The requested session or event was not found.
- `409` — The request conflicted with the current session state.
- `500` — An internal error occurred.
- `503` — The service is temporarily unavailable.

## Changes

- **2026-09-25** `d86203de41ae` — 1 info
  - added the non-success response with the status `403`
- **2026-09-10** `f2dae1a9aced` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openai/apis/openapi/changes/agents/:agent_id/delete.md)

---

[API](https://skmtc.dev/openai/apis/openapi.md) · [All operations](https://skmtc.dev/openai/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc.dev/openai/apis/openapi/revisions/d86203de41ae?raw)
