For projects.regions.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{projectId}/regions/{region}/autoscalingPolicies/{policy_id}
For projects.locations.autoscalingPolicies.delete, the resource name of the policy has the following format: projects/{projectId}/locations/{location}/autoscalingPolicies/{policy_id}
Authorization requires the following IAM permission on the specified resource name:
dataproc.autoscalingPolicies.delete
Request body
The request body must be empty.
Response body
If successful, the response body is an empty JSON object.
[[["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-06-20 UTC."],[[["\u003cp\u003eThis endpoint allows the deletion of an autoscaling policy via a DELETE HTTP request to the specified URL.\u003c/p\u003e\n"],["\u003cp\u003eThe URL requires a resource name in the format \u003ccode\u003eprojects/{projectId}/regions/{region}/autoscalingPolicies/{policy_id}\u003c/code\u003e or \u003ccode\u003eprojects/{projectId}/locations/{location}/autoscalingPolicies/{policy_id}\u003c/code\u003e, specified in the \u003ccode\u003ename\u003c/code\u003e path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for deleting an autoscaling policy must be empty.\u003c/p\u003e\n"],["\u003cp\u003eA successful deletion will return an empty JSON object in the response body.\u003c/p\u003e\n"],["\u003cp\u003eDeleting an autoscaling policy requires \u003ccode\u003edataproc.autoscalingPolicies.delete\u003c/code\u003e IAM permission on the specified resource and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.regions.autoscalingPolicies.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 an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters.\n\n### HTTP request\n\n`DELETE https://dataproc.googleapis.com/v1/{name=projects/*/regions/*/autoscalingPolicies/*}`\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)."]]