---
title: "DELETE /models/{modelId}"
method: DELETE
path: "/models/{modelId}"
---

# DELETE /models/{modelId}

`DELETE /models/{modelId}`

## Path parameters

- `modelId` string, required

## Response `200`

200 response

- Model
  - `createdBy` string, nullable, required
  - `createdTime` string, nullable, required
  - `description` string, nullable, required
  - `fieldConfig` object, nullable, required
  - `metadata` object, nullable, required
  - `modelId` string, required
  - `name` string, nullable, required
  - `numberOfDataBundles` integer, required
  - `numberOfRunningTrainings` integer, required
  - `organizationId` string, required
  - `postprocessConfig` union
    - object
      - `strategy` 'BEST_FIRST', required
    - object
      - `parameters` object, required
        - `collapse` boolean
        - `n` integer, required
      - `strategy` 'BEST_N_PAGES', required
  - `preprocessConfig` object, required
    - `autoRotate` boolean
    - `imageQuality` 'LOW' | 'HIGH'
    - `maxPages` integer
    - `pages` integer[]
    - `rotation` 0 | 90 | 180 | 270
  - `status` 'active' | 'inactive', required
  - `trainingId` string, nullable, 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-14** `2af8d1616889` — 3 breaking, 2 info
  - the response property `preprocessConfig/autoRotate` became optional for the status `200`
  - the response property `preprocessConfig/imageQuality` became optional for the status `200`
  - the response property `preprocessConfig/maxPages` became optional for the status `200`
  - added the optional property `preprocessConfig/pages` to the response with the `200` status
  - …1 more
- **2023-03-28** `6f04f3b3738e` — 2 breaking
  - removed the required property `height` from the response with the `200` status
  - removed the required property `width` from the response with the `200` status
- **2023-02-14** `1cd1234c5271` — 2 info
  - the `modelId` response's property pattern was changed from `^las:model:[a-f0-9]{32}$` to `^las:model:[a-z0-9-_]+$` for the status `200`
  - added the required property `organizationId` to the response with the `200` status
- **2023-01-03** `b97c0a72def1` — 3 breaking, 3 warning
  - added `subschema #1, subschema #2` to the `fieldConfig/additionalProperties/` response property `oneOf` list for the response status `200`
  - the `fieldConfig/additionalProperties/` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - removed the required property `fieldConfig/additionalProperties/type` from the response with the `200` status
  - removed the optional property `fieldConfig/additionalProperties/description` from the response with the `200` status
  - …2 more
- …earlier changes not shown

[Full history](https://skmtc.dev/lucidtechai/apis/lucidtech-api/changes/models/:modelId/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)
