How to delete images from database with product
I use WooCommerce REST API for updating/creating/deleting products.
When I try to delete a product using
$woocommerce->post('products/batch'), an image connected with a product is not deleting from the DB and filesystem. It takes up unnecessary space on the server.
What is the best way to resolve this problem?