v2

latestOpenAPI 3.1.02026-07-2615946107.7 KB
Artifacts

Delete an artifact (soft delete)

Soft delete with a 30-day recovery window — not an immediate purge. The artifact is hidden from listings and stops serving, and its routing slug is freed for re-publish, but its files, versions, and data store are kept so it can be restored via POST /v1/artifacts/{id}/restore until the window elapses (a daily sweep hard-purges it after that). Caller must be the artifact owner, or a workspace owner/admin when the artifact is workspace-owned (owner_id is null).

delete/v1/artifacts/{id}

Response

Moved to trash

successboolean
deletedstring

Artifact id

deleted_atstring date-time
recoverable_untilstring date-time

After this time the artifact is permanently purged.

retention_daysinteger
restore_urlstring
messagestring

Example response

{
  "retention_days": 30
}