Delete an artifact (soft delete)
DELETE
/v1/artifacts/{id}
const url = 'https://shareout.site/v1/artifacts/example';const options = {method: 'DELETE', headers: {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 https://shareout.site/v1/artifacts/example \ --header 'Authorization: Bearer <token>'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).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Artifact ID (e.g. art_abc123).
Responses
Section titled “ Responses ”Moved to trash
Media type application/json
object
success
boolean
deleted
Artifact id
string
deleted_at
string format: date-time
recoverable_until
After this time the artifact is permanently purged.
string format: date-time
retention_days
integer
restore_url
string
message
string
Example
{ "retention_days": 30}Access denied
Media type application/json
object
success
required
boolean
error
required
Human-readable message.
string
code
required
Machine-readable error code.
string
Example
{ "success": false}Resource not found
Media type application/json
object
success
required
boolean
error
required
Human-readable message.
string
code
required
Machine-readable error code.
string
Example
{ "success": false}