Delete

Permanently deletes a document and all associated data that was created by the v2 parse, extract, or split endpoints. This includes the document record, the uploaded PDF file in storage, and the cached parse results.

POST https://pdf.ai/api/v2/delete

Sample Code

Below are examples of how to use the delete endpoint with different programming languages.

curl -X POST https://pdf.ai/api/v2/delete \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"docId": "your-document-id"}'

Please replace placeholders like <YOUR_API_Key> with actual values.

Headers

Name
Type
Description

X-API-Key*

string

<API-Key>

Request Format

Content-Type: application/json

Request Parameters

Parameter
Type
Required
Description

docId

string

Yes

Document ID returned from Parse, Extract, or Split

Response format

Credit Usage

Free - no API credits are charged for delete operations.

Last updated

Was this helpful?