---
title: "Delete a model inventory by ID"
method: DELETE
path: "/modelInventory/{id}"
tags: ["Model Inventory"]
---

# Delete a model inventory by ID

`DELETE /modelInventory/{id}`

Deletes a model inventory record and its project/framework associations. Optionally deletes linked model risks when deleteRisks=true. Records deletion in change history and fires "model_deleted" automations.

## Path parameters

- `id` integer, required

## Query parameters

- `deleteRisks` 'true' | 'false'

## Response `200`

Model inventory deleted

- object
  - `message` string
  - `data` string

## Other responses

- `401` — Missing or invalid JWT
- `404` — Model inventory not found
- `500` — Internal server error

## Changes

- **2026-04-21** `55cdc040840c` — 4 info
  - added the new optional `query` request parameter `deleteRisks`
  - added the media type `application/json` for the response with the status `200`
  - added the media type `application/json` for the response with the status `500`
  - added the non-success response with the status `404`
- **2026-04-05** `c419b1e72a65` — 1 breaking, 6 info
  - removed the media type `application/json` for the response with the status `200`
  - api operation id `deleteModelInventoryById` was added
  - the endpoint scheme security `bearerAuth` was added to the API
  - the endpoint scheme security `JWTAuth` was removed from the API
  - …3 more
- **2026-02-09** `632b8f26ebbc` — 1 info
  - endpoint added
- **2025-01-22** `ed48b7196725` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/verifywise-ai/apis/verifywise-api/changes/modelInventory/:id/delete.md)

---

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