Agents
Delete an agent session
Changed onRemoves 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.
delete/agents/sessions/{session_id}
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/agents/sessions/{session_id}
- AuthHTTP bearer
Path parameters
session_idstring required
The ID of the session.
Response
The deleted session.
Changes
- info
endpoint added
- info