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 document describes the process of deleting an OS policy assignment, which includes creating a new revision and using a long-running operation (LRO) for the rollout.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to delete an OS policy assignment is a \u003ccode\u003eDELETE\u003c/code\u003e request to a specific URL with the OS policy assignment's name as a path parameter, using gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003erequestId\u003c/code\u003e query parameter can be included to make the request idempotent, which should consist of a unique identifier of up to 36 ASCII characters, such as a random UUID.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for deleting an OS policy assignment must be empty, and a successful response will return an instance of an Operation.\u003c/p\u003e\n"],["\u003cp\u003eDeleting an OS policy assignment requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003eosconfig.osPolicyAssignments.delete\u003c/code\u003e on the target resource.\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/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).\n\n### HTTP request\n\n`DELETE https://osconfig.googleapis.com/v1alpha/{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)."]]