> ## Documentation Index
> Fetch the complete documentation index at: https://anam.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# delete llm

> 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.



## OpenAPI

````yaml https://api.anam.ai/swagger.json delete /v1/llms/{id}
openapi: 3.1.0
info:
  title: Anam AI API
  version: '1.0'
servers:
  - url: https://api.anam.ai
    description: Anam API
security:
  - BearerAuth: []
tags:
  - name: Sessions
  - name: Meetings
  - name: Personas
  - name: Avatars
  - name: Voices
  - name: LLMs
  - name: Knowledge
  - name: Tools
  - name: Share Links
  - name: Engine
paths:
  /v1/llms/{id}:
    delete:
      tags:
        - LLMs
      summary: delete llm
      description: >-
        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.
      operationId: deleteLlm
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
          description: The LLM ID
      responses:
        '204':
          description: Successfully deleted LLM
        '401':
          description: Unauthorized - Invalid or missing API key
        '403':
          description: >-
            Forbidden - Cannot delete default LLMs or API key lacks the required
            permission
        '404':
          description: LLM not found
        '409':
          description: >-
            Conflict - the LLM is still used by active personas. Move those
            personas to another LLM, then retry.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: >-
                      LLM is used by active personas. Move them to another LLM
                      before deleting it.
                  impactedPersonaIds:
                    type: array
                    items:
                      type: string
                      format: uuid
        '500':
          description: Server error
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````