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

# Delete a Model

> Cancels its scan if one is running, resolves its findings as absent (their triage is kept, and uploading the same bytes again reopens them) and removes its stored bytes.



## OpenAPI

````yaml /api-reference/earnie/scans-openapi.json delete /v1/projects/{projectId}/models/{modelId}
openapi: 3.0.3
info:
  title: Earnie Scans API
  description: >-
    Submit scans, follow their progress, and read their results: files, matches,
    cryptography, AI models, and posture.
  version: 1.0.0
servers:
  - url: https://{tenant}.earnie.dev
    description: Your Earnie deployment
    variables:
      tenant:
        default: your-company
        description: >-
          Your organization's Earnie address, as shown in your browser when you
          sign in.
security:
  - bearerAuth: []
paths:
  /v1/projects/{projectId}/models/{modelId}:
    parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: modelId
        in: path
        required: true
        schema:
          type: string
          format: uuid
    delete:
      tags:
        - scans
      summary: Delete a Model
      description: >-
        Cancels its scan if one is running, resolves its findings as absent
        (their triage is kept, and uploading the same bytes again reopens them)
        and removes its stored bytes.
      operationId: DeleteV1ProjectModel
      responses:
        '204':
          description: The Model is gone.
        '401':
          description: Not authenticated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            `module_disabled`: the organization has no `ai` scanner.
            `module_scope_forbidden`: the API key is not scoped to `ai`.
            `insufficient_permission`: missing `scans:write`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            `model_not_found`: no Model with this id in this project, or `ai` is
            hidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: >-
            Machine-readable error code. `source_not_available` when WFP upload
            lands).
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An Earnie API key, sent as `Authorization: Bearer sk_earnie_...`. Create
        one under Settings > API keys. The key's scopes decide which operations
        it may call.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.