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

# Delete an agent session artifact

`DELETE /agents/sessions/{session_id}/artifacts/{artifact_id}`

Deletes an immutable session artifact without deleting its live environment file or original Files API object. See [session artifacts](https://developers.openai.com/api/docs/guides/agents-api/environments/files#openai-hosted-artifacts).

## Path parameters

- `session_id` string, required
- `artifact_id` string, required

## Response `200`

The deleted session artifact.

- DeletedSessionArtifactResource — Confirmation that an immutable session artifact was deleted.
  - `id` string, required — The ID of the deleted session artifact.
  - `object` 'agent.session.artifact.deleted', required — The object type. Always `agent.session.artifact.deleted`.
  - `deleted` boolean, required — Whether the session artifact 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-10** `f2dae1a9aced` — 1 info
  - endpoint added

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