Delete an item (always allowed)
DELETE
/v1/studio/library/{item_id}
const url = 'http://localhost:8300/v1/studio/library/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/library/example \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'Hard delete, never refused: past takes keep their resolved graph and made_with.elements / made_with.looks; their reuse answers this item deleted; a batch already submitted keeps its copy. A prompt that still mentions the handle is 422 at its next run. Deleting again is 404.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”item_id
required
string
Library item 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"}