v2
latestOpenAPI 3.1.02026-07-2615946107.7 KBArtifacts
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
Example response
{
"retention_days": 30
}