Agents
Delete an agent session artifact
Changed onDeletes an immutable session artifact without deleting its live environment file or original Files API object. See session artifacts.
delete/agents/sessions/{session_id}/artifacts/{artifact_id}
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/agents/sessions/{session_id}/artifacts/{artifact_id}
- AuthHTTP bearer
Path parameters
session_idstring required
The ID of the session that owns the artifact.
artifact_idstring required
The immutable session artifact ID.
Response
The deleted session artifact.
Changes
- info
endpoint added
- info