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

# Delete Language Model Endpoint

> Remove a language model configuration.

    Permanently removes the specified language model from the system. This
    removes both the cached instance and the configuration, so the model
    cannot be used until it is added again. The change is persisted to the
    configuration file.

    This operation is useful for:
    - Removing models that are no longer needed
    - Clearing failed models before adding a corrected configuration
    - Freeing resources used by unused models

    Returns 404 if the language model does not exist.



## OpenAPI

````yaml /openapi.json delete /api/v2/config/resources/language_models/{name}
openapi: 3.1.0
info:
  title: MemMachine API
  version: 0.3.10
  description: >-
    Architectural Memory Systems for AI Agents. Specialized in episodic and
    semantic memory management with strict namespace isolation.
servers:
  - url: http://localhost:8080
security: []
tags:
  - name: Configuration
    description: System overview and memory subsystem configuration.
  - name: Episodic Configuration
    description: Per-project episodic memory subsystem configuration.
  - name: Memories
    description: Core operations for episodic and semantic memory ingestion and retrieval.
  - name: Projects
    description: Lifecycle management for isolated memory namespaces.
  - name: Resources
    description: Embedder, language model, and reranker lifecycle management.
  - name: 'Semantic Memory: Categories'
    description: Category, template, and tag management for semantic sets.
  - name: 'Semantic Memory: Features'
    description: Add, retrieve, and update individual semantic features.
  - name: 'Semantic Memory: Sets'
    description: Set type and set ID lifecycle, listing, and configuration.
  - name: System
    description: Infrastructure, health, and observability.
paths:
  /api/v2/config/resources/language_models/{name}:
    delete:
      tags:
        - Resources
      summary: Delete Language Model Endpoint
      description: |-
        Remove a language model configuration.

            Permanently removes the specified language model from the system. This
            removes both the cached instance and the configuration, so the model
            cannot be used until it is added again. The change is persisted to the
            configuration file.

            This operation is useful for:
            - Removing models that are no longer needed
            - Clearing failed models before adding a corrected configuration
            - Freeing resources used by unused models

            Returns 404 if the language model does not exist.
      operationId: delete_language_model
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
            title: Name
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteResourceResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DeleteResourceResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: |2-

                Whether the deletion succeeded.
        message:
          type: string
          title: Message
          description: |2-

                Status message describing the result of the operation.
      type: object
      required:
        - success
        - message
      title: DeleteResourceResponse
      description: Response model for resource deletion operations.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````