DELETE/v1/templates/{id}
Delete a template and its stored source PDF
PARAMETERS
- idpath · stringREQUIRED
- The template ide.g. tpl_3h8kq2wzm4tnb7hdc3vr
REQUEST
curl -X DELETE "https://api.pdfedge.com/v1/templates/tpl_3h8kq2wzm4tnb7hdc3vr" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.delete("https://api.pdfedge.com/v1/templates/tpl_3h8kq2wzm4tnb7hdc3vr", 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/templates/tpl_3h8kq2wzm4tnb7hdc3vr", {
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": "tpl_3h8kq2wzm4tnb7hdc3vr",
"object": "template",
"deleted": true
}
404No such file on this account, or it has expired
{
"error": "string",
"message": "string",
"param": "string"
}