pdfedge
API reference › Files

Delete a file now instead of waiting for it to expire; its URL stops working

DELETE/v1/files/{id}

DELETE/v1/files/{id}

Delete a file now instead of waiting for it to expire; its URL stops working

PARAMETERS
idpath · stringREQUIRED
The file id
e.g. fil_8kq2wzm4tnb7hdc3vrex
In the full reference
REQUEST
curl -X DELETE "https://api.pdfedge.com/v1/files/fil_8kq2wzm4tnb7hdc3vrex" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "fil_8kq2wzm4tnb7hdc3vrex",
  "object": "file",
  "deleted": true
}
404No such file on this account, or it has expired
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.