GuideLab API

Delete a file

Archives (soft-deletes) a file: the record and its R2 object are retained, and a retention job physically purges them after the retention window. Only an owner of the owning organization may archive; delivery-proof files and files attached to non-draft orders are immutable.

DELETE
/files/{id}

Archives (soft-deletes) a file: the record and its R2 object are retained, and a retention job physically purges them after the retention window. Only an owner of the owning organization may archive; delivery-proof files and files attached to non-draft orders are immutable.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Path Parameters

id*string

File ID

Response Body

application/json

curl -X DELETE "https://example.com/files/550e8400-e29b-41d4-a716-446655440000"
{  "success": true}
Empty
Empty
Empty
Empty
Empty