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

# Delete an agent session

`DELETE /agents/sessions/{session_id}`

Removes a managed agent session from the public API and returns a deletion confirmation. If backend execution has ended, deletion can cancel a still-open public turn and abandon unpublished outputs. Running execution must be cancelled first. Physical cleanup may continue asynchronously. See [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage).

## Path parameters

- `session_id` string, required

## Response `200`

The deleted session.

- DeletedSessionResource — A Managed Agents session removed from the public API. Physical cleanup may continue asynchronously.
  - `id` string, required — The ID of the deleted session.
  - `object` 'agent.session.deleted', required — The object type. Always `agent.session.deleted`.
  - `deleted` boolean, required — Whether the session has been removed from the public API. Always `true`. Physical cleanup may still be in progress.

## 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-10** `f2dae1a9aced` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openai/apis/openapi/changes/agents/sessions/:session_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/9c523485a79e?raw)
