---
title: "Cancel a data query job"
method: DELETE
path: "/query/jobs/{job-id}"
tags: ["Data Queries"]
---

# Cancel a data query job

`DELETE /query/jobs/{job-id}`

Cancels a [data query](https://docs.zuora.com?resourceId=platform-data-query-overview) job, which prevents Zuora from performing the query. This operation is only applicable if the status of the query job is `accepted` or `in_progress`.

## Path parameters

- `job-id` string, uuid, required

## Headers

- `Accept-Encoding` string
- `Content-Encoding` string
- `Zuora-Entity-Ids` string
- `Zuora-Org-Ids` string
- `Zuora-Track-Id` string

## Response `200`

OK

- DeleteDataQueryJobResponse
  - `data` DataQueryJobCancelled — A cancelled data query job.
    - `createdBy` string, uuid — The query job creator's Id.
    - `id` string, uuid — Internal identifier of the query job.
    - `query` string — The query that was submitted.
    - `remainingRetries` integer — The number of times that Zuora will retry the query if Zuora is unable to perform the query.
    - `sourceData` string — Indicates the source that data queries run against: * `LIVE` represents the live transactional databases at Zuora (Data Query Live). * `WAREHOUSE` represents Zuora Warehouse, which has better performance and fewer limitations than the live transactional database. For more information, see <a href="https://docs.zuora.com?resourceId=platform-zuora-warehouse-overview" target="_blank">Zuora Warehouse</a>.
    - `updatedOn` string, date-time — Date and time when the query job was last updated, in ISO 8601 format.
    - `useIndexJoin` boolean — Indicates whether to use Index Join. See <a href="https://docs.zuora.com?resourceId=platform-data-query-practices" target="_blank">Index Join</a> for more information.
    - `queryStatus` 'cancelled' — Status of the query job.

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.dev/zuora/apis/api-reference.md) · [All operations](https://skmtc.dev/zuora/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zuora/api-reference/revisions/d11e237f3e54/schema)
