v10

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-0643140398.0 KB
Files

Delete an uploaded file

Permanently delete an uploaded file from the session. Only files that were uploaded via POST /v1/files can be deleted; sandbox-generated output files cannot be deleted through this endpoint.

delete/v1/files/{file_id}

Path parameters

file_idstring required

Query parameters

scope_idstring required

Session / container identifier.

Example:session-abc123

Session / container identifier.

Response

Successful Response

idstring required

Relative path of the file that was deleted.

type'file_deleted'

Object type discriminator, always 'file_deleted'.

Example response

{
  "id": "uploads/data.csv",
  "type": "file_deleted"
}