public final UnaryCallable<PurgeProductsRequest, Operation> purgeProductsCallable() {
    return stub.purgeProductsCallable();
  }
Asynchronous API to delete all Products in a ProductSet or all Products that are in no
ProductSet.

<p>If a Product is a member of the specified ProductSet in addition to other ProductSets, the
Product will still be deleted.

<p>It is recommended to not delete the specified ProductSet until after this operation has
completed. It is also recommended to not add any of the Products involved in the batch delete
to a new ProductSet while this operation is running because those Products may still end up
deleted.

<p>It's not possible to undo the PurgeProducts operation. Therefore, it is recommended to keep
the csv files used in ImportProductSets (if that was how you originally built the Product Set)
before starting PurgeProducts, in case you need to re-import the data after deletion.

<p>If the plan is to purge all of the Products from a ProductSet and then re-use the empty
ProductSet to re-import new Products into the empty ProductSet, you must wait until the
PurgeProducts operation has finished for that ProductSet.

<p>The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep
track of the progress and results of the request. `Operation.metadata` contains
`BatchOperationMetadata`. (progress)

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
  PurgeProductsRequest request =
      PurgeProductsRequest.newBuilder()
          .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          .setForce(true)
          .build();
  ApiFuture<Operation> future = productSearchClient.purgeProductsCallable().futureCall(request);
  // Do something.
  future.get();
}
}</pre>
java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/ProductSearchClient.java