---
title: "Delete a model"
method: DELETE
path: "/v1/models/{modelId}"
tags: ["Models"]
---

# Delete a model

`DELETE /v1/models/{modelId}`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/models/{modelId}`
- Auth: HTTP bearer

Unloads the model from the engine, deletes the file, and removes endpoint configs.

## Response `200`

Model deleted

- object
  - `ok` true, required
  - `id` string, required

## Other responses

- `404`: Resource not found

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
