public final void deleteReferenceImage(String name) {
    DeleteReferenceImageRequest request =
        DeleteReferenceImageRequest.newBuilder().setName(name).build();
    deleteReferenceImage(request);
  }
Permanently deletes a reference image.

<p>The image metadata will be deleted right away, but search queries against ProductSets
containing the image may still work until all related caches are refreshed.

<p>The actual image files are not deleted from Google Cloud Storage.

<p>Possible errors:

<ul>
  <li>Returns NOT_FOUND if the reference image does not exist.
</ul>

<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()) {
  String name =
      ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]")
          .toString();
  productSearchClient.deleteReferenceImage(name);
}
}</pre>

@param name Required. The resource name of the reference image to delete.
    <p>Format is:
    <p>`projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java