Skip to main content
DELETE
/
threads
/
{thread_id}
/
runs
/
{run_id}
Delete Run
curl --request DELETE \
  --url https://api.example.com/threads/{thread_id}/runs/{run_id}
{
  "error": "<string>",
  "message": "<string>",
  "details": {}
}

Path Parameters

thread_id
string
required
run_id
string
required

Query Parameters

force
integer
default:0

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

Required range: 0 <= x <= 1

Response

Successful Response