Delete product image using WooCommerce API?

I'm trying to remove product image (one at a time) using WooCommerce API but I'm facing a strange problem.

I can remove all associated image at once by sending an empty array in images: { images:[] }

But I can't find a way to remove one image at a time.

Topic woocommerce-offtopic json images api Wordpress

Category Web


The image array you are sending includes all images you want attached to the product. If you want to remove one image, you need to send all original image id's minus the one you want to remove,

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.