---
title: "delete llm"
method: DELETE
path: "/v1/llms/{id}"
tags: ["LLMs"]
---

# delete llm

`DELETE /v1/llms/{id}`

Delete an LLM configuration. When active personas (or their working drafts) still use the LLM, the request is refused with 409 because deleting it would make those personas' sessions fail. Move the impacted personas to another LLM (PUT /v1/personas/{id}), then retry.

## Path parameters

- `id` string, required

## Response `204`

Successfully deleted LLM

## Other responses

- `401` — Unauthorized - Invalid or missing API key
- `403` — Forbidden - Cannot delete default LLMs or API key lacks the required permission
- `404` — LLM not found
- `409` — Conflict - the LLM is still used by active personas. Move those personas to another LLM, then retry.
- `500` — Server error

---

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