DELETE/v1/files/{id}
Delete a file now instead of waiting for it to expire; its URL stops working
PARAMETERS
- idpath · stringREQUIRED
- The file ide.g. fil_8kq2wzm4tnb7hdc3vrex
REQUEST
curl -X DELETE "https://api.pdfedge.com/v1/files/fil_8kq2wzm4tnb7hdc3vrex" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.delete("https://api.pdfedge.com/v1/files/fil_8kq2wzm4tnb7hdc3vrex", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.text)
const r = await fetch("https://api.pdfedge.com/v1/files/fil_8kq2wzm4tnb7hdc3vrex", {
method: "DELETE",
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.text());
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"
}