Method: projects.locations.capacityCommitments.delete
Deletes a capacity commitment. Attempting to delete capacity commitment before its commitmentEndTime will fail with the error code google.rpc.Code.FAILED_PRECONDITION
.
HTTP request
DELETE https://bigqueryreservation.googleapis.com/v1/{name=projects/*/locations/*/capacityCommitments/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Required. Resource name of the capacity commitment to delete. E.g., projects/myproject/locations/US/capacityCommitments/123
Authorization requires the following IAM permission on the specified resource name :
bigquery.capacityCommitments.delete
|
Query parameters
Parameters |
force |
boolean
Can be used to force delete commitments even if assignments exist. Deleting commitments with assignments may cause queries to fail if they no longer have access to slots.
|
Request body
The request body must be empty.
Response body
If successful, the response body is an empty JSON object.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/bigquery
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["This webpage outlines the process for deleting a capacity commitment via an HTTP DELETE request to a specified URL."],["The request requires a resource name in the path, which includes the project, location, and commitment ID."],["Authorization is required, specifically the `bigquery.capacityCommitments.delete` IAM permission, or the use of one of the two specified OAuth scopes."],["The request body must be empty, and the optional `force` query parameter allows for the deletion of commitments even if assignments exist."],["A successful deletion results in an empty JSON response body, while attempting to delete a commitment before its `commitmentEndTime` will result in a failed precondition error."]]],[]]