v47

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-075441165.7 KB
Thread Runs

Delete Run

Delete a run record.

If the run is active (pending or running) and force=0, returns 409 Conflict. Set force=1 to cancel the run first (best-effort) and then delete it. Returns 204 No Content on success.

delete/threads/{thread_id}/runs/{run_id}

Path parameters

thread_idstring required
run_idstring required

Query parameters

forceinteger

Set to 1 to cancel an active run before deleting it.

Set to 1 to cancel an active run before deleting it.

Response

Successful Response