Delete a finished run from its session
DELETE
/v1/studio/runs/{run_id}
const url = 'http://localhost:8300/v1/studio/runs/example';const options = { method: 'DELETE', headers: {'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:8300/v1/studio/runs/example \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'. Soft: the run leaves GET …/sessions/{id}/runs, GET on it is 404 and its events leave the session’s replay; its takes stay in the gallery. Allowed when failed, cancelled or succeeded; 409 stop the run first while queued or running, 409 a batch's run goes with its batch for a run with a batch_id. 404 for an unknown, another user’s, an already deleted or a hidden (purpose name) run.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”run_id
required
string
Run UUID (malformed = 404)
Responses
Section titled “Responses”Deleted
Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Not found
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}The resource’s state forbids this
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Retryable
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}