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

# Delete a Custom LLM Model

> Remove a custom Large Language Model and its stored endpoint key from your Bolna account.

Deletes the model along with the API key stored for its endpoint. A model still selected on an agent cannot be deleted, and the error names the agents using it. Read more in [using-custom-llm](/docs/customizations/using-custom-llm).


## OpenAPI

````yaml DELETE /user/model/custom/{model_id}
openapi: 3.1.0
info:
  title: Bolna API
  description: >-
    Use and leverage Bolna Voice AI using APIs through HTTP requests from any
    language in your applications and workflows.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.bolna.ai
    description: Production server
security:
  - bearerAuth: []
paths:
  /user/model/custom/{model_id}:
    delete:
      description: Delete a custom LLM Model along with its stored key
      parameters:
        - in: path
          name: model_id
          required: true
          schema:
            type: string
          description: Identifier of the custom model
      responses:
        '200':
          description: the model was deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddModelResponse'
        '403':
          description: The model belongs to another account scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such custom model in this scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Agents still use this model. The message names them
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    AddModelResponse:
      properties:
        message:
          type: string
          example: model added successfully
          description: Success message for adding the custom model
        status:
          type: string
          enum:
            - added
          example: added
          description: status for the model sent in the request to be added
      type: object
      title: addmodelstatus
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````