code: public final void deleteReferenceImage(ReferenceImageName name) {
  
      DeleteReferenceImageRequest request =
          DeleteReferenceImageRequest.newBuilder()
              .setName(name == null ? null : name.toString())
              .build();
      deleteReferenceImage(request);
    }
docs: 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:
  
  <p>&#42; Returns NOT_FOUND if the reference image does not exist.
  
  <p>Sample code:
  
  <pre><code>
  try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
  ReferenceImageName name = ReferenceImageName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]", "[REFERENCE_IMAGE]");
  productSearchClient.deleteReferenceImage(name);
  }
  </code></pre>
  
  @param name 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