Required. The name of the OS policy assignment to be deleted
Query parameters
Parameters
requestId
string
Optional. A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is only idempotent if a requestId is provided.
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Operation.
[[["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-28 UTC."],[[["\u003cp\u003eThis method allows the deletion of an OS policy assignment, creating a new revision in the process.\u003c/p\u003e\n"],["\u003cp\u003eThe deletion process is managed via a long-running operation (LRO), which can be cancelled to halt the rollout and if not, will delete all revisions associated with the OS policy assignment upon completion.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e path parameter is required to specify the OS policy assignment that needs to be deleted, and an optional \u003ccode\u003erequestId\u003c/code\u003e query parameter can be provided to ensure idempotency.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a DELETE operation to a specific URL structure, and the request body must be empty for this operation.\u003c/p\u003e\n"],["\u003cp\u003eDeleting an OS policy assignment requires \u003ccode\u003eosconfig.osPolicyAssignments.delete\u003c/code\u003e IAM permission, as well as the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.osPolicyAssignments.delete\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nDelete the OS policy assignment.\n\nThis method creates a new revision of the OS policy assignment.\n\nThis method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO.\n\nIf the LRO completes and is not cancelled, all revisions associated with the OS policy assignment are deleted.\n\nFor more information, see [Method: projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).\n\n### HTTP request\n\n`DELETE https://osconfig.googleapis.com/v1/{name=projects/*/locations/*/osPolicyAssignments/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query 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](/compute/docs/osconfig/rest/Shared.Types/ListOperationsResponse#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).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `osconfig.osPolicyAssignments.delete`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]