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.
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.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Path Parameters
File ID
Response Body
application/json
curl -X DELETE "https://example.com/files/550e8400-e29b-41d4-a716-446655440000"{ "success": true}Copy files to an order POST
Copies existing patient file objects to unique storage keys and associates the copies with a different order.
Download a file GET
Streams the file content directly from R2 through the Worker (R2 egress is free; this avoids presigned-URL redirects and CORS surprises). Pass `?thumbnail=true` for the thumbnail variant.