fynepdf logo
Docs menu

Delete a file

Deletes the bytes now, before their expiry.

DELETE /v1/files/{id}

Request

curl -X DELETE https://api.fynepdf.com/v1/files/file_01jc8x4m2k9q7r3t5vwy6z \
  -H "Authorization: Bearer $FYNEPDF_API_KEY"

Path and query parameters

ParameterTypeRequiredWhat it does
idstringyes

Response

The deleted file.

FieldTypeRequiredWhat it does
object"file"yes
idstringyes
filenamestringyes
content_typestringyes
kindstringyes
bytesinteger or nullyes
pagesinteger or nullyes
status"pending" · "ready" · "deleted" · "expired"yes
source"upload" · "url" · "multipart" · "job" · "library"yes
job_idstring or nullyes
created_atstringyes
expires_atstringyes
download_urlstring or nullyesA signed link valid for one hour; ask again for a fresh one.

Errors

Errors are problem details (RFC 9457) with a code you can branch on and a request_id for support.