public sealed class DeleteOSPolicyAssignmentRequest : IMessage<DeleteOSPolicyAssignmentRequest>, IEquatable<DeleteOSPolicyAssignmentRequest>, IDeepCloneable<DeleteOSPolicyAssignmentRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud OS Config v1 API class DeleteOSPolicyAssignmentRequest.
A request message for deleting a OS policy assignment.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-12 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eDeleteOSPolicyAssignmentRequest\u003c/code\u003e class in the Google Cloud OS Config v1 API is used to send a request to delete an OS policy assignment.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for various operations and data management capabilities.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this API class is 2.4.0, with multiple older versions available, dating back to 1.3.0, allowing for backward compatibility.\u003c/p\u003e\n"],["\u003cp\u003eIt contains two constructors, a parameterless one and one that accepts another \u003ccode\u003eDeleteOSPolicyAssignmentRequest\u003c/code\u003e for copying, and two properties: \u003ccode\u003eName\u003c/code\u003e, a string, and \u003ccode\u003eOSPolicyAssignmentName\u003c/code\u003e, a typed view over the name property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property within the \u003ccode\u003eDeleteOSPolicyAssignmentRequest\u003c/code\u003e class is a required string that specifies the name of the OS policy assignment that is intended to be deleted.\u003c/p\u003e\n"]]],[],null,["# Google Cloud OS Config v1 API - Class DeleteOSPolicyAssignmentRequest (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.4.0/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.3.0/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.2.0/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.1.0/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.0.0/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.8.0/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.7.0/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.6.0/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.5.0/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.4.0/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.3.0/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest) \n\n public sealed class DeleteOSPolicyAssignmentRequest : IMessage\u003cDeleteOSPolicyAssignmentRequest\u003e, IEquatable\u003cDeleteOSPolicyAssignmentRequest\u003e, IDeepCloneable\u003cDeleteOSPolicyAssignmentRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud OS Config v1 API class DeleteOSPolicyAssignmentRequest.\n\nA request message for deleting a OS policy assignment. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DeleteOSPolicyAssignmentRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeleteOSPolicyAssignmentRequest](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteOSPolicyAssignmentRequest](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeleteOSPolicyAssignmentRequest](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.OsConfig.V1](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.OsConfig.V1.dll\n\nConstructors\n------------\n\n### DeleteOSPolicyAssignmentRequest()\n\n public DeleteOSPolicyAssignmentRequest()\n\n### DeleteOSPolicyAssignmentRequest(DeleteOSPolicyAssignmentRequest)\n\n public DeleteOSPolicyAssignmentRequest(DeleteOSPolicyAssignmentRequest other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The name of the OS policy assignment to be deleted\n\n### OSPolicyAssignmentName\n\n public OSPolicyAssignmentName OSPolicyAssignmentName { get; set; }\n\n[OSPolicyAssignmentName](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.OSPolicyAssignmentName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.DeleteOSPolicyAssignmentRequest#Google_Cloud_OsConfig_V1_DeleteOSPolicyAssignmentRequest_Name) resource name property."]]