Delete a session with its runs and events
DELETE
/v1/studio/sessions/{session_id}
const url = 'http://localhost:8300/v1/studio/sessions/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/sessions/example \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'409 while one of its runs is queued or running (cancel it first), or while a batch in it is queued, running or paused (stop it first). Its takes stay in the gallery with session_id and run_id set to null (made_with is a snapshot); its finished batches stay with session_id and their rows’ run_id set to null.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”session_id
required
string
Session 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"}