---
title: "Delete a document, source file, and extracted rows"
method: DELETE
path: "/documents/{document_id}"
tags: ["Documents"]
---

# Delete a document, source file, and extracted rows

`DELETE /documents/{document_id}`

## Request

- Base URL: `https://api.pdfparse.net/v1`
- URL: `https://api.pdfparse.net/v1/documents/{document_id}`
- Auth: HTTP bearer

## Path parameters

- `document_id` string, required

## Headers

- `Idempotency-Key` string: Scopes replay protection to the authenticated project, method, and route for 24 hours.

## Response `202`

Success

- object
  - `document_id` number, required
  - `workflow_id` string, required
  - `status` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Workflow error

---

[API](https://skmtc.dev/pdfparse/apis/pdfparse-api.md) · [All operations](https://skmtc.dev/pdfparse/apis/pdfparse-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pdfparse/apis/pdfparse-api/revisions/fb9f7c930c6d?raw)
