Skip to main content
DELETE
/
browser
/
sessions
/
{id}
/
files
/
{filename}
Delete Session File
curl --request DELETE \
  --url https://api.example.com/browser/sessions/{id}/files/{filename}

Overview

Removes a file previously uploaded via POST /browser/sessions/{id}/files. The filename path segment must be URL-encoded and cannot contain path separators. Deleting a non-existent file returns 404.

Path Parameters

id
string
required
Browser session ID (UUID).
filename
string
required
File name to delete. Must match exactly the filename used at upload time, URL-encoded.

Example Request

curl -X DELETE "https://api.scrapengine.io/api/v1/browser/sessions/baa3f390-fa6e-4a24-b84a-a575a5f3a9c7/files/resume.pdf" \
  -H "Authorization: Bearer $SCRAPENGINE_API_KEY"

Response

Success Response (204)

No content.

Error Responses

StatusDescription
400Invalid filename — contains a path separator or is . / ...
401Unauthorized — invalid or missing API key.
404Session not found, or no such file in the uploads directory.