title: Woocommerce when deleting a product, automatically also delete the product gallery and product image
body: <p>I was trying the following:</p>
  
  <p>when a product page gets deleted (permanently), it should also delete the:
  product gallery and product image which are attached to the post.</p>
  
  <p>I tried the solution i found on:
  <a href="https://wordpress.stackexchange.com/questions/109793/delete-associated-media-upon-page-deletion">https://wordpress.stackexchange.com/questions/109793/delete-associated-media-upon-page-deletion</a></p>
  
  <p>But it didn't work out for me.</p>