---
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, nullable
  - `contentMD5` string, nullable
  - `contentType` 'application/pdf' | 'image/jpeg' | 'image/png' | 'image/tiff', nullable
  - `createdBy` string, nullable, required
  - `createdTime` string, nullable, required
  - `datasetId` string
  - `description` string, nullable, required
  - `documentId` string, required
  - `fileUrl` string, nullable
  - `groundTruth` object[]
    - `label` string, required
    - `value` union, required
      - string, nullable
      - boolean, nullable
      - number, nullable
      - union
        - object[]
          - `label` string, required
          - `value` union, required
            - string
            - boolean
            - number
            - GroundTruthList — recursive
        - array[]
          - object[]
            - `label` string, required
            - `value` union, required
              - …
  - `metadata` object, nullable, required
  - `name` string, nullable, required
  - `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

- **2023-06-27** `654101a6bca7` — 4 breaking, 1 info
  - the response property `content` became nullable for the status `200`
  - the response property `contentType` became nullable for the status `200`
  - the response property `contentMD5` became optional for the status `200`
  - the response property `contentType` became optional for the status `200`
  - …1 more
- **2022-09-29** `424af607ab69` — 2 breaking, 2 info
  - the response property `groundTruth/items/value/anyOf[#/components/schemas/groundTruthList]/` became nullable for the status `200`
  - the response property `metadata` became nullable for the status `200`
  - added `subschema #2, subschema #3` to the `groundTruth/items/value` response property `anyOf` list for the response status `200`
  - removed `subschema #2, subschema #3` from the `groundTruth/items/value` response property `anyOf` list for the response status `200`
- **2022-09-13** `b8d771f64c04` — 1 info
  - added the required property `contentMD5` to the response with the `200` status
- …earlier changes not shown

[Full 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/654101a6bca7/schema)
