public sealed class DeleteProductRequest : IMessage<DeleteProductRequest>, IEquatable<DeleteProductRequest>, IDeepCloneable<DeleteProductRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Retail v2 API class DeleteProductRequest.
Request message for
[ProductService.DeleteProduct][google.cloud.retail.v2.ProductService.DeleteProduct]
method.
Required. Full resource name of [Product][google.cloud.retail.v2.Product],
such as
projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id.
If the caller does not have permission to delete the
[Product][google.cloud.retail.v2.Product], regardless of whether or not it
exists, a PERMISSION_DENIED error is returned.
If the [Product][google.cloud.retail.v2.Product] to delete does not exist,
a NOT_FOUND error is returned.
The [Product][google.cloud.retail.v2.Product] to delete can neither be a
[Product.Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]
[Product][google.cloud.retail.v2.Product] member nor a
[Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]
[Product][google.cloud.retail.v2.Product] with more than one
[variants][google.cloud.retail.v2.Product.Type.VARIANT]. Otherwise, an
INVALID_ARGUMENT error is returned.
All inventory information for the named
[Product][google.cloud.retail.v2.Product] will be deleted.
Property Value
Type
Description
System.String
ProductName
public ProductName ProductName { get; set; }
ProductName-typed view over the Name resource name property.
[[["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\u003eDeleteProductRequest\u003c/code\u003e class within the Google Cloud Retail v2 API, specifically for version 2.3.0 and other versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteProductRequest\u003c/code\u003e class is used to formulate requests for the \u003ccode\u003eProductService.DeleteProduct\u003c/code\u003e method, which is used to delete product information from the Retail service.\u003c/p\u003e\n"],["\u003cp\u003eIt lists the various available versions of the \u003ccode\u003eDeleteProductRequest\u003c/code\u003e class, ranging from version 2.12.0 (latest) down to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteProductRequest\u003c/code\u003e 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, allowing it to interact with different parts of the .NET ecosystem.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteProductRequest\u003c/code\u003e class includes properties such as \u003ccode\u003eName\u003c/code\u003e (a string) and \u003ccode\u003eProductName\u003c/code\u003e (a \u003ccode\u003eProductName\u003c/code\u003e-typed object), with \u003ccode\u003eName\u003c/code\u003e being required and representing the resource name of the product to delete.\u003c/p\u003e\n"]]],[],null,[]]