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

# Delete Fine-tuning Job

> Remove a job and its artifacts at /v1/fine_tuning/jobs/{job_id}

## Overview

Deletes a fine-tuning job. Delete the trained model itself with [`DELETE /v1/models/{model}`](/api-reference/endpoint/delete-model).


## OpenAPI

````yaml DELETE /v1/fine_tuning/jobs/{job_id}
openapi: 3.1.0
info:
  title: Morph API
  version: 1.1.0
  description: >-
    The Morph public API at api.morphllm.com: OpenAI- and Anthropic-compatible
    inference (chat completions, messages), Fast Apply code editing, Compact
    context compression, Reflex classification, and fine-tuning. Model ids,
    prices, and context windows are served live at
    https://www.morphllm.com/api/models/json.
  contact:
    name: Morph
    url: https://morphllm.com
    email: info@morphllm.com
  license:
    name: Proprietary
    url: https://morphllm.com/privacy/tos
servers:
  - url: https://api.morphllm.com
    description: Production
security: []
tags:
  - name: chat
    description: >-
      OpenAI- and Anthropic-compatible chat inference, including Fast Apply and
      WarpGrep models.
  - name: compact
    description: Context compression for long agent conversations.
  - name: reflex
    description: 'Per-turn classifiers: realtime prediction and batches.'
  - name: fine-tuning
    description: Reflex fine-tuning job lifecycle.
  - name: models
    description: Model listing and management.
  - name: telemetry
    description: Usage reporting hooks.
paths:
  /v1/fine_tuning/jobs/{job_id}:
    delete:
      tags:
        - fine-tuning
      summary: Delete a job
      description: Delete the job and its trained model.
      operationId: deleteFineTuningJob
      parameters:
        - schema:
            type: string
            description: The `ftjob-` prefixed id of a job you own.
            example: ftjob-a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
          required: true
          description: Identifies the job to remove.
          name: job_id
          in: path
      responses:
        '200':
          description: Deletion confirmation for the job.
          content:
            application/json:
              example:
                id: ftjob-a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
                object: fine_tuning.job.deleted
                deleted: true
              schema:
                $ref: '#/components/schemas/DeletedFineTuningJob'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - bearerAuth: []
components:
  schemas:
    DeletedFineTuningJob:
      type: object
      properties:
        id:
          type: string
          description: The job that was deleted.
          example: ftjob-a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
        object:
          type: string
          description: Always `fine_tuning.job.deleted`.
          example: fine_tuning.job.deleted
        deleted:
          type: boolean
          description: True once the job and its trained model are gone.
          example: true
      required:
        - id
        - object
        - deleted
      description: Confirmation that a fine-tuning job was deleted.
      example:
        id: ftjob-a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
        object: fine_tuning.job.deleted
        deleted: true
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: invalid_request_error
              description: Machine-readable error code.
            message:
              type: string
              example: The request body is missing the `model` field.
              description: Human-readable explanation of the failure.
          required:
            - code
            - message
      required:
        - error
      description: Standard error envelope returned by every non-2xx response.
      example:
        error:
          code: invalid_request_error
          message: The request body is missing the `model` field.
  responses:
    BadRequest:
      description: Malformed request — missing or invalid fields.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_request_error
              message: The request body is missing the `model` field.
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unauthorized
              message: Invalid API key provided.
    NotFound:
      description: The requested resource does not exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: not_found
              message: No fine-tuning job found with id ftjob-8f2k1.
    RateLimited:
      description: Rate limited — retry after the interval in the Retry-After header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: rate_limited
              message: Too many requests. Retry in 12 seconds.
    InternalError:
      description: Internal error — safe to retry with backoff.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: internal_error
              message: Something went wrong on our side.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: >-
        Morph API key, passed as `Authorization: Bearer sk-...`. Create keys at
        https://www.morphllm.com/dashboard/api-keys.

````