public sealed class PurgeProductsRequest : IMessage<PurgeProductsRequest>, IEquatable<PurgeProductsRequest>, IDeepCloneable<PurgeProductsRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Vision v1 API class PurgeProductsRequest.
[[["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-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003ePurgeProductsRequest\u003c/code\u003e class within the Google Cloud Vision v1 API, detailing its properties, constructors, and inheritance structure.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePurgeProductsRequest\u003c/code\u003e class is used to construct requests for the \u003ccode\u003ePurgeProducts\u003c/code\u003e method, enabling the deletion of products within a specified project and location.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented is 3.7.0, with historical versions ranging from 3.6.0 to 2.3.0, which are available for reference, while the full history can be found on the web page.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003ePurgeProductsRequest\u003c/code\u003e include \u003ccode\u003eDeleteOrphanProducts\u003c/code\u003e, \u003ccode\u003eForce\u003c/code\u003e, and \u003ccode\u003eParent\u003c/code\u003e, allowing users to define if orphan products should be deleted, confirm the deletion, and specify the target project and location.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its capabilities for message handling, equality checks, deep cloning, and buffer management.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Vision v1 API - Class PurgeProductsRequest (3.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.PurgeProductsRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.6.0/Google.Cloud.Vision.V1.PurgeProductsRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.5.0/Google.Cloud.Vision.V1.PurgeProductsRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.4.0/Google.Cloud.Vision.V1.PurgeProductsRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.3.0/Google.Cloud.Vision.V1.PurgeProductsRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.2.0/Google.Cloud.Vision.V1.PurgeProductsRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.1.0/Google.Cloud.Vision.V1.PurgeProductsRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.0.0/Google.Cloud.Vision.V1.PurgeProductsRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.5.0/Google.Cloud.Vision.V1.PurgeProductsRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.4.0/Google.Cloud.Vision.V1.PurgeProductsRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.3.0/Google.Cloud.Vision.V1.PurgeProductsRequest) \n\n public sealed class PurgeProductsRequest : IMessage\u003cPurgeProductsRequest\u003e, IEquatable\u003cPurgeProductsRequest\u003e, IDeepCloneable\u003cPurgeProductsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Vision v1 API class PurgeProductsRequest.\n\nRequest message for the `PurgeProducts` method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PurgeProductsRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PurgeProductsRequest](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.PurgeProductsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PurgeProductsRequest](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.PurgeProductsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PurgeProductsRequest](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.PurgeProductsRequest), [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.Vision.V1](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Vision.V1.dll\n\nConstructors\n------------\n\n### PurgeProductsRequest()\n\n public PurgeProductsRequest()\n\n### PurgeProductsRequest(PurgeProductsRequest)\n\n public PurgeProductsRequest(PurgeProductsRequest other)\n\nProperties\n----------\n\n### DeleteOrphanProducts\n\n public bool DeleteOrphanProducts { get; set; }\n\nIf delete_orphan_products is true, all Products that are not in any\nProductSet will be deleted.\n\n### Force\n\n public bool Force { get; set; }\n\nThe default value is false. Override this value to true to actually perform\nthe purge.\n\n### HasDeleteOrphanProducts\n\n public bool HasDeleteOrphanProducts { get; }\n\nGets whether the \"delete_orphan_products\" field is set\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The project and location in which the Products should be deleted.\n\nFormat is `projects/PROJECT_ID/locations/LOC_ID`.\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax/ResourceNames/LocationName.cs)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.PurgeProductsRequest#Google_Cloud_Vision_V1_PurgeProductsRequest_Parent) resource name property.\n\n### ProductSetPurgeConfig\n\n public ProductSetPurgeConfig ProductSetPurgeConfig { get; set; }\n\nSpecify which ProductSet contains the Products to be deleted.\n\n### TargetCase\n\n public PurgeProductsRequest.TargetOneofCase TargetCase { get; }"]]