---
title: "Cancel Optimization Job"
method: DELETE
path: "/api/v1/jobs/gepa/{job_id}"
---

# Cancel Optimization Job

`DELETE /api/v1/jobs/gepa/{job_id}`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/modaic-ai/apis/modaic-api/docs/api/v1/jobs/gepa/:job_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Cancel a running GEPA optimization job.

Only cancels if the job is still in the ``optimizing`` phase.  If the
sandbox already reached a terminal state (``finalizing`` or ``done``),
the UPDATE is a no-op so we don't clobber a successful result or
interfere with the finalization pipeline.

## Path parameters

- `job_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `modaic_session` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/modaic-ai/apis/modaic-api.md) - [All operations](https://skmtc.dev/modaic-ai/apis/modaic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/modaic-ai/apis/modaic-api/revisions/43a90513ac59?raw)
