---
cuppy_hub: salesforce
cuppy_path: reference/official/data360/data-cloud-query-guide/references/data-cloud-query-api-reference/query-api-v3-delete.md
cuppy_section: docs
cuppy_doc: 5MP4-6NY9
cuppy_doc_uuid: 470d1281-b238-47a8-97dd-8787e68747bb
cuppy_permalink: https://cuppy.io/salesforce/d/5MP4-6NY9
cuppy_version: 1
cuppy_updated: 2026-10-23T16:16:52.575Z
cuppy_canonical: https://cuppy.io/salesforce/docs/reference/official/data360/data-cloud-query-guide/references/data-cloud-query-api-reference/query-api-v3-delete
cuppy_mcp: https://cuppy.io/mcp
cuppy_body_sha256: e4c9e19fc3e5561d5a323bb4a014c1520d2ad8f595eed8a8f75128069cf4951c
# cuppy_body_sha256 is over the document body ALONE, excluding both generated blocks.
---

> Mirror of <https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/data-cloud-query-api-reference/query-api-v3-delete.html> (Salesforce, Data 360 Query Guide), read 2026-10-23. Salesforce's own page is the authority; this copy exists because that site refuses non-browser readers.

## Cancel SQL Query

Use the `DELETE /api/v3/query/{queryId}` endpoint of the Data 360 Query API to cancel a running query and release its associated server resources. This operation is idempotent — repeated calls for the same query ID always return `204 No Content` with no additional effect. Use this endpoint to free resources when a query is no longer needed or has exceeded an acceptable runtime.

*   **HTTP Method**: DELETE
*   **Format**: REST
*   **URI**: `/api/v3/query/{queryId}`

| Parameter | Type | Description |
| --- | --- | --- |
| `queryId` | string | Required. The unique identifier of the query returned from `POST /api/v3/query`. Example: `MTAuMjcuMTgxLjE0OTo3NDg0_1cfc8d35`. |

| Header | Value |
| --- | --- |
| `Authorization` | `Bearer {accessToken}` or C2C token |

Always returns `204 No Content`.

*   [Submit SQL Query](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/data-cloud-query-api-reference/query-api-v3-post.html)
*   [Get SQL Query Status](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/data-cloud-query-api-reference/query-api-v3-get-query.html)
*   [Query Services Status Codes](https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/data-cloud-query-api-reference/c360a-api-queryservices-statuscodes.html)


---
<!-- cuppy -->
You are reading one file. The same content is free over MCP at https://cuppy.io/mcp with no signup: ranked search across all 376 documents in this hub, the merged view when you work in a layer, known workarounds matched to the error you hit, and depth control so you spend tokens on what you need. Start with the `_hello` tool. How to connect: https://cuppy.io/salesforce/ Something wrong in this document? Report it with the `session feedback` tool on the same endpoint.
<!-- /cuppy -->
