Queue a delete of a shared LoRA's file on one host (a model job)
const url = 'http://localhost:8300/v1/studio/admin/loras/example?host=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/admin/loras/example?host=example' \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'Admin only (403). 202 with the job (kind lora_delete, sent to the first env by name whose loras key on that host lists the id); 200 with the existing job when the same delete is queued or running. Every file of that host’s index with this SHA-256 is removed; the other envs of the host drop it at their next rescan (at most 60 s). 404 for an id the host does not list (an own LoRA’s UUID included: users delete their own with DELETE /v1/studio/loras/{lora_id}). 409 LoRA <name> is part of <title> (pre-fused); delete the model instead, LoRA <name> is baked into a loaded component on <host>; unload it first, LoRA <name> is in use by a queued or running run on <host>.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A shared LoRA’s SHA-256 (64 hex) or an own LoRA’s UUID (malformed = 404)
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”The same delete, already queued or running
object
The runner env that does it (the one whose models or loras key lists the model or LoRA)
Download, delete
Download: the variant; delete: null = every variant (or the add-on’s)
Download and delete: the optional add-on instead of a variant (variant null)
Lora_delete
Qwen Image 2.1 · Turbo, or the LoRA’s name
Delete: the shared components it leaves on disk, decided when it was queued; [] otherwise
object
The variants on the host that still load it
The admin’s user id
The first running status
Example
{ "kind": "download", "title": "Qwen Image 2.1 · Turbo", "state": "queued", "failure": { "class": "not_found" }}The job, queued
object
The runner env that does it (the one whose models or loras key lists the model or LoRA)
Download, delete
Download: the variant; delete: null = every variant (or the add-on’s)
Download and delete: the optional add-on instead of a variant (variant null)
Lora_delete
Qwen Image 2.1 · Turbo, or the LoRA’s name
Delete: the shared components it leaves on disk, decided when it was queued; [] otherwise
object
The variants on the host that still load it
The admin’s user id
The first running status
Example
{ "kind": "download", "title": "Qwen Image 2.1 · Turbo", "state": "queued", "failure": { "class": "not_found" }}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}Valid token without the admin role: “admin role required”
object
Example generated
{ "detail": "example"}Not found
object
Example generated
{ "detail": "example"}The resource’s state forbids this
object
Example generated
{ "detail": "example"}Invalid input
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}