---
title: "Cancel a query as identified by the queryId"
method: DELETE
path: "/query/{brokerId}/{queryId}"
tags: ["Query"]
---

# Cancel a query as identified by the queryId

`DELETE /query/{brokerId}/{queryId}`

No effect if no query exists for the given queryId on the requested broker. Query may continue to run for a short while after calling cancel as it's done in a non-blocking manner. The cancel method can be called multiple times.

## Path parameters

- `brokerId` string, required
- `queryId` integer, required

## Query parameters

- `timeoutMs` integer
- `verbose` boolean

## Response `200`

Success

## Other responses

- `404` — Query not found on the requested broker
- `500` — Internal server error

---

[API](https://skmtc.net/startree/apis/pinot-controller-api.md) · [All operations](https://skmtc.net/startree/apis/pinot-controller-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/startree/pinot-controller-api/revisions/f1cc8a0ba2e0/schema)
