Deletes an access policy based on the resource name. The long-running operation has a successful status after the access policy is removed from long-lasting storage.
[[["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-17 UTC."],[[["\u003cp\u003eThis page details the process for deleting an access policy via an HTTP DELETE request.\u003c/p\u003e\n"],["\u003cp\u003eThe URL structure for the DELETE request follows gRPC Transcoding syntax and requires a specific resource name in the format \u003ccode\u003eaccessPolicies/{policy_id}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for this operation must be empty.\u003c/p\u003e\n"],["\u003cp\u003eA successful request returns an instance of the \u003ccode\u003eOperation\u003c/code\u003e response body.\u003c/p\u003e\n"],["\u003cp\u003eThis operation requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: accessPolicies.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 [access policy](/access-context-manager/docs/reference/rest/v1alpha/accessPolicies#AccessPolicy) based on the resource name. The long-running operation has a successful status after the [access policy](/access-context-manager/docs/reference/rest/v1alpha/accessPolicies#AccessPolicy) is removed from long-lasting storage.\n\n### HTTP request\n\n`DELETE https://accesscontextmanager.googleapis.com/v1alpha/{name=accessPolicies/*}`\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 contains an instance of [Operation](/access-context-manager/docs/reference/rest/Shared.Types/Operation).\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)."]]