Cancel SQL Query

Data 360 Query Guide, mirrored from developer.salesforce.com: 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.

markdownreferencev15MP4-6NY9guide: data-cloud-query-guidestage: referencetrust: officialsource: developer.salesforce.comservice: data360interface: restCancel SQL QueryData 360Data CloudData 360 Query Guide/api/v3/query/{queryId}

Created 23 Oct 2026 · Modified 23 Oct 2026 · 1 version

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}
ParameterTypeDescription
queryIdstringRequired. The unique identifier of the query returned from POST /api/v3/query. Example: MTAuMjcuMTgxLjE0OTo3NDg0_1cfc8d35.
HeaderValue
AuthorizationBearer {accessToken} or C2C token

Always returns 204 No Content.

Read this document as markdown — the same bytes an agent receives.