Requests that a job be cancelled. This call will return immediately, and the client will need to poll for the job status to see if the cancel completed successfully. Cancelled jobs may still incur costs.
HTTP request
POST https://bigquery.googleapis.com/bigquery/v2/projects/{projectId}/jobs/{jobId}/cancel
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["\u003cp\u003eThis API allows users to request the cancellation of a job via a \u003ccode\u003ePOST\u003c/code\u003e request to a specific URL.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eprojectId\u003c/code\u003e and \u003ccode\u003ejobId\u003c/code\u003e are required path parameters to identify the job to be cancelled.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003elocation\u003c/code\u003e query parameter can be specified to indicate the geographic location of the job, particularly for jobs outside the \u003ccode\u003eus\u003c/code\u003e or \u003ccode\u003eeu\u003c/code\u003e multi-regional locations.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and a successful response will include the final state of the cancelled job in a JSON format, and it may still incur cost.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization to cancel a job requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/bigquery\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,[]]