private async Task DeleteReferenceImage(ProductSearchClient client, string productId, string referenceImageId)
        {
            var request = new DeleteReferenceImageRequest
            {
                ReferenceImageName = new ReferenceImageName(this.options.Value.ProjectId, this.options.Value.LocationId, productId, referenceImageId)
            };

            await client.DeleteReferenceImageAsync(request);
        }
        // [END vision_product_search_get_reference_image]

        // [START vision_product_search_delete_reference_image]
        private static int DeleteReferenceImage(DeleteReferenceImageOptions opts)
        {
            var client  = ProductSearchClient.Create();
            var request = new DeleteReferenceImageRequest
            {
                // Get the full path of the reference image.
                ReferenceImageName = new ReferenceImageName(opts.ProjectID,
                                                            opts.ComputeRegion,
                                                            opts.ProductID,
                                                            opts.ReferenceImageID)
            };

            client.DeleteReferenceImage(request);
            Console.WriteLine("Reference image deleted from product.");
            return(0);
        }