Delete a take (soft)
DELETE
/v1/studio/takes/{take_id}
const url = 'http://localhost:8300/v1/studio/takes/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/takes/example \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'The take leaves the gallery at once (GET is 404, it is in no list, its run’s outputs drop it, takes made from it leave it out of parents); voices keeps it as its clip: the voice still plays and runs, and deleting that voice frees it. Deleting again is 404. A run that already references it and has not read it yet may fail (input image <take_id> is gone; a video or audio take: input take <take_id> is gone). Never refused for an element that uses it: the image drops out of that element.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”take_id
required
string
Take 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"}Retryable
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}