---
title: "DELETE /documents/{documentId}"
method: DELETE
path: "/documents/{documentId}"
---

# DELETE /documents/{documentId}

`DELETE /documents/{documentId}`

## Path parameters

- `documentId` string, required

## Response `200`

200 response

- Document
  - `consentId` string
  - `content` string
  - `contentType` 'application/pdf' | 'image/jpeg' | 'image/png' | 'image/tiff', required
  - `createdBy` string, nullable, required
  - `createdTime` string, nullable, required
  - `datasetId` string
  - `documentId` string, required
  - `groundTruth` object[]
    - `label` string, required
    - `value` union, required
      - string, nullable
      - boolean
  - `retentionInDays` integer, required
  - `updatedBy` string, nullable, required
  - `updatedTime` string, nullable, required

## Other responses

- `400` — 400 response
- `403` — 403 response
- `404` — 404 response
- `415` — 415 response
- `500` — 500 response

## Changes

- **2021-11-05** `9788e6bfa925` — 4 breaking, 4 warning, 5 info
  - the `content` response property's maxLength was unset from `6250000` for the response status `200`
  - removed the required property `description` from the response with the `200` status
  - removed the required property `metadata` from the response with the `200` status
  - removed the required property `name` from the response with the `200` status
  - …9 more

[Change history](https://skmtc.dev/lucidtechai/apis/lucidtech-api/changes/documents/:documentId/delete.md)

---

[API](https://skmtc.dev/lucidtechai/apis/lucidtech-api.md) · [All operations](https://skmtc.dev/lucidtechai/apis/lucidtech-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lucidtechai/lucidtech-api/revisions/9788e6bfa925/schema)
