---
title: "Cancel a running query job"
method: DELETE
path: "/query/jobs/{jobId}"
tags: ["Query"]
---

# Cancel a running query job

`DELETE /query/jobs/{jobId}`

Cancels a running job. The response always returns the current terminal status plus
a `canceled` flag that tells you whether this request changed the job state.

## Path parameters

- `jobId` string, required

## Response `200`

Current job state after the cancel attempt

## Other responses

- `404` — Resource not found

---

[API](https://skmtc.net/lynxbase/apis/lynxdb-api.md) · [All operations](https://skmtc.net/lynxbase/apis/lynxdb-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lynxbase/lynxdb-api/revisions/4363a070c444/schema)
