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

# Terminate a training job

> Terminate a Fastino training job and delete all of its checkpoints.

`POST /v1/training-jobs/{job_id}/terminate`

Stops the provider job if it is active, deletes every checkpoint, and marks the job as terminated.

<Warning>
  Termination is irreversible. Use the stop endpoint when you need to preserve checkpoints.
</Warning>

## Request

<ParamField header="X-API-Key" type="string" required>
  Your Fastino API key.
</ParamField>

<ParamField path="job_id" type="string" required>
  Training-job UUID.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.fastino.ai/v1/training-jobs/YOUR_TRAINING_JOB_ID/terminate \
    -H "X-API-Key: $FASTINO_API_KEY"
  ```
</RequestExample>

## Response

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "message": "Training job terminated",
    "job_id": "YOUR_TRAINING_JOB_ID",
    "deleted_checkpoints": 3
  }
  ```
</ResponseExample>

An unknown job or a job that cannot be terminated returns a request-specific `4xx` error.
