Löscht die Batch-Arbeitslastressource. Wenn sich der Batch nicht in einem CANCELLED-, SUCCEEDED- oder FAILED-State befindet, schlägt der Löschvorgang fehl und die Antwort gibt FAILED_PRECONDITION zurück.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-03-04 (UTC)."],[[["\u003cp\u003eThis page documents the process for deleting a batch workload resource via an HTTP DELETE request to the specified URL.\u003c/p\u003e\n"],["\u003cp\u003eA successful deletion results in an empty response body, but the batch must be in a \u003ccode\u003eCANCELLED\u003c/code\u003e, \u003ccode\u003eSUCCEEDED\u003c/code\u003e, or \u003ccode\u003eFAILED\u003c/code\u003e state or the request will fail.\u003c/p\u003e\n"],["\u003cp\u003eThe URL includes path parameters, specifically a \u003ccode\u003ename\u003c/code\u003e parameter which requires the full batch resource name.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for this operation must be empty.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a batch requires the \u003ccode\u003edataproc.batches.delete\u003c/code\u003e IAM permission and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.batches.delete\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nDeletes the batch workload resource. If the batch is not in a `CANCELLED`, `SUCCEEDED` or `FAILED` [`State`](/dataproc-serverless/docs/reference/rest/v1/projects.locations.batches#State), the delete operation fails and the response returns `FAILED_PRECONDITION`.\n\n### HTTP request\n\n`DELETE https://dataproc.googleapis.com/v1/{name=projects/*/locations/*/batches/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]