Delete a managed PDF
DELETE
/v1/pdfs/{pdfId}
const url = 'https://api.presscloud.example/v1/pdfs/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.presscloud.example/v1/pdfs/example \ --header 'Authorization: Bearer <token>'Marks a managed PDF for asynchronous purge and hides it from subsequent reads immediately.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” pdfId
required
string
Responses
Section titled “ Responses ”Managed PDF delete accepted.
Requested resource was not found.
Media type application/json
object
error
required
string
message
required
string
Example generated
{ "error": "example", "message": "example"}Requested operation conflicts with the current resource state.
Media type application/json
object
error
required
string
message
required
string
Example generated
{ "error": "example", "message": "example"}