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.

Syntax 

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

Path Parameters 

ParameterTypeDescription
queryIdstringRequired. The unique identifier of the query returned from POST /api/v3/query. Example: MTAuMjcuMTgxLjE0OTo3NDg0_1cfc8d35.

Request Headers 

HeaderValue
AuthorizationBearer {accessToken} or C2C token

Response Structure 

Always returns 204 No Content.

Examples 

Request 

1DELETE https://{dne_cdpInstanceUrl}/api/v3/query/MTAuMjcuMTgxLjE0OTo3NDg0_1cfc8d35-464c-9185-1f41-3eb638a71f7a
2Authorization: Bearer {accessToken}

Response 

1204 No Content

Related Resources