Delete work
Code Mode: praxis.media.libraries.works.delete
HTTP: DELETE /media/v1/libraries/{library_id}/works/{work_id}
Delete a work. Only the work goes: every asset it named stays in the library unchanged.
Signature
praxis.media.libraries.works.delete(args:{path:{library_id:string;work_id:string}}):Promise<{/** Id of the deleted work. */ id:string;/** Always work. */ object:"work";/** Always true: the work is deleted; every asset it named is unchanged. */ deleted:true}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| library_id | path | string | yes | Library ID returned by creation. |
| work_id | path | string | yes | Work id (wrk_…) returned by creation or listing. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | Successful response. |
| 400 | application/json | A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying. |
| 402 | application/json | Request failed; see the error code reference. |
| 403 | application/json | This credential has read-only access to the library; use a write-capable binding for mutations. |
| 404 | application/json | The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner. |
| 409 | application/json | Request failed; see the error code reference. |
| 413 | application/json | The file exceeds an input limit; provide a smaller source file. |
| 415 | application/json | This media format is unsupported; provide a supported format. |
| 422 | application/json | Request failed; see the error code reference. |
| 429 | application/json | A rate limit was reached; wait before retrying. |
| 501 | application/json | The requested operation is unsupported; choose a supported method. |
| 502 | application/json | Request failed; see the error code reference. |
| 503 | application/json | Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete. |