Delete an own LoRA (never refused)
DELETE
/v1/studio/loras/{lora_id}
const url = 'http://localhost:8300/v1/studio/loras/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/loras/example \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'The LoRA is gone at once (404 from then on, in no list, it frees its count and bytes); a sweep deletes the object a day later. Past takes keep made_with.loras (reuse answers it deleted). A run not yet released that names it fails at dispatch (LoRA <name> was deleted); a released one may still finish. A batch row whose run is made later fails invalid (lora.rows[1].lora: LoRA <id> not found). A workflow or preset that still names it gets the lora_unknown problem. 409 shared LoRAs are managed on their host for a shared id.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”lora_id
required
string
A shared LoRA’s SHA-256 (64 hex) or an own LoRA’s 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"}