account

Delete Asset Library Entry

Changed on

Take one of the customer's uploads or generated works out of their library (a soft hide; the file stays).

A generated work leaves on its own (a song comes in two; keeping one is fine), and its make leaves with its last work. A whole make can still leave through /tasks/{task_id}/library-entry.

With permanent=true, only for the customer's own uploads, the file is deleted for good and outcome says what became of it: deleted, or kept with kept_reasons when it stays (a generated work or a shared file stays exactly as it is; a file an avatar, a voice or a singer still holds leaves the Materials list and stays). Errors: 400 invalid_request "Generated works are deleted through their task" for a generated work; 404 artifact_not_found for a file that is not the customer's upload; 409 conflict "The file is in use by a task that is still in progress"; 503 internal_error "The file could not be deleted right now; try again later" (nothing was changed).

delete/account/assets/{artifact_id}/library-entry

Request

  • Base URL
    https://api.beatra.ai (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Path parameters

artifact_id, string required

Query parameters

permanent, boolean

Delete one of the customer's own uploads for good (its bytes, thumbnails, covers and public addresses) instead of only taking it out of the library.

Headers

authorization, string nullable

Response

Successful Response

AssetLibraryDeleteResponse required

An upload or one generated work taken out of the library: without permanent, the file and its URL stay.

With permanent=true on an upload, outcome says what became of the file: deleted (its bytes, its derivatives and their public addresses are removed or queued for removal) or kept (kept_reasons says why: a generated work or a share link keeps it exactly as it was; an avatar, a voice or a singer that still holds it only takes it out of the Materials list). outcome and kept_reasons are left out of the answer when the request was not permanent, so that answer is exactly what it has always been.

artifact_id, string required
status, 'removed'
task_removed, boolean
outcome, 'deleted' | 'kept' nullable
kept_reasons, string[] nullable

Changes

    • info

      added the new optional query request parameter permanent

    • info

      added the optional property kept_reasons to the response with the status

    • info

      added the optional property outcome to the response with the status