---
title: "Expire a batch job"
method: POST
path: "/v6/batches/{batchId}/expire"
tags: ["Batch Jobs"]
---

# Expire a batch job

`POST /v6/batches/{batchId}/expire`

Marks a completed batch job as expired, releasing associated resources. Only jobs in terminal state (`DONE`, `FAILED`, or `CANCELED`) can be expired. Once expired, the job record remains queryable but its data source reference is released.

## Path parameters

- `batchId` string, required

## Response `200`

Batch job expired. Returns the updated job record with `status: EXPIRED`.

## Other responses

- `400` — Bad Request
- `401` — Missing or invalid access token.
- `402` — Payment Required
- `403` — Forbidden
- `404` — Batch job not found or does not belong to this client.
- `415` — Unsupported Media Type
- `423` — Error
- `429` — Too Many Requests

---

[API](https://skmtc.net/extole/apis/integration-api-server-to-extole.md) · [All operations](https://skmtc.net/extole/apis/integration-api-server-to-extole/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/extole/integration-api-server-to-extole/revisions/c16e62e66755/schema)
