---
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
  - `height` integer, required
  - `metadata` object, nullable, required
  - `modelId` string, required
  - `name` string, nullable, required
  - `numberOfDataBundles` integer, required
  - `numberOfRunningTrainings` integer, 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, required
    - `imageQuality` 'LOW' | 'HIGH', required
    - `maxPages` integer, required
  - `status` 'active' | 'inactive', required
  - `trainingId` string, nullable, required
  - `updatedBy` string, nullable, required
  - `updatedTime` string, nullable, required
  - `width` integer, required

## Other responses

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

## Changes

- **2022-09-29** `424af607ab69` — 2 breaking
  - the response property `fieldConfig` became nullable for the status `200`
  - the response property `metadata` became nullable for the status `200`
- **2022-09-13** `b8d771f64c04` — 1 warning, 6 info
  - added the new `numeric` enum value to the `fieldConfig/additionalProperties/type` response property for the response status `200`
  - removed the `all` enum value from the `fieldConfig/additionalProperties/type` response property for the response status `200`
  - removed the `alphanum` enum value from the `fieldConfig/additionalProperties/type` response property for the response status `200`
  - removed the `alphanumext` enum value from the `fieldConfig/additionalProperties/type` response property for the response status `200`
  - …3 more
- **2022-05-27** `4ed1784cbf8b` — 1 info
  - added the optional property `postprocessConfig` to the response with the `200` status
- **2022-05-19** `3d6e6ac703bb` — 1 info
  - the `fieldConfig/additionalProperties/enum/items/` response's property pattern was changed from `[0-9A-Za-z-_]+` to `^[0-9A-Za-zÆØÅæøå!"#$%&()*+,\-./:;<=>?@\[\]\^_`{|}~ ]+$` for the status `200`
- …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/424af607ab69/schema)
