code: public final void deleteProduct(ProductName name) {
  
      DeleteProductRequest request =
          DeleteProductRequest.newBuilder().setName(name == null ? null : name.toString()).build();
      deleteProduct(request);
    }
docs: Permanently deletes a product and its reference images.
  
  <p>Metadata of the product and all its images will be deleted right away, but search queries
  against ProductSets containing the product may still work until all related caches are
  refreshed.
  
  <p>Possible errors:
  
  <p>&#42; Returns NOT_FOUND if the product does not exist.
  
  <p>Sample code:
  
  <pre><code>
  try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
  ProductName name = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
  productSearchClient.deleteProduct(name);
  }
  </code></pre>
  
  @param name Resource name of product to delete.
  <p>Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
  @throws com.google.api.gax.rpc.ApiException if the remote call fails