---
title: "Delete the document"
method: DELETE
path: "/documents/{document_id}"
tags: ["documents"]
---

# Delete the document

`DELETE /documents/{document_id}`

how parameter: if how == "FULL", we delete the entire document, including its source files
if how == "SOURCE_FILES", we only remove the (source) files and we set the archived flag. In practice this means
all information in the database (json) remains available, but you can no longer download / visualise the original document.

**WARNING** The removal (of source files and in the database) is permanent


**Permission required:** review

## Query parameters

- `how` 'FULL' | 'SOURCE_FILES'

## Response `200`

Success

## Other responses

- `403` — Permission insufficient

---

[API](https://skmtc.net/contractp/apis/contract-p.md) · [All operations](https://skmtc.net/contractp/apis/contract-p/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/contractp/contract-p/versions/8ce53ebd6bd3/schema)
