Clipform

Delete a respondent-uploaded file

Deletes a file from the file-uploads bucket via service role. Validates that the storage path matches the claimed form_id and session_id to prevent cross-form deletion.

POST
/uploads/delete

Request Body

application/jsonRequired
path
Required
string
form_id
Required
string
Format: "uuid"
session_id
Required
string
Format: "uuid"
curl -X POST "https://api.clipform.io/v1/uploads/delete" \
  -H "Content-Type: application/json" \
  -d '{
    "path": "string",
    "form_id": "46af4ef5-2c18-4098-9bc5-c048fb90b843",
    "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82"
  }'

File deleted

{
  "success": true
}