Deleting product, but not deleting product photos belongs to

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate Deleting product, but not deleting product photos belongs to

Viewing 3 reply threads
  • Author
    Posts
    • #14163
      memtimintursun
      Participant

      I just realised this,
      Deleting product, but not deleting product photos belongs to.

      I have deleted one product to test, it gets deleted. but why those photos belongs to the product not gets deleted? is this bug?

      Thanks!

    • #14168
      WCFM Forum
      Member

      Hi,

      WordPress didn’t do that, on post/product delete it just remove the association with image attachment but actual image never deleted.

      You can test this from wp-admin for product or any other post types and will get the same result.

      So we are very much limited here.

      Thank You

    • #14170
      memtimintursun
      Participant

      I see, thanks for your clear reply.

      do you know any solution for this? any plugin for automation or even check once week or month and delete photo files not used by wordpress?

      Thanks!

    • #14171
      WCfM Forum
      Guest

      Hi,

      Here is a plugin for the exact purpose.
      Though I didn’t try this ever please take look, hope this will solve the issue for you.

      https://wordpress.org/plugins/dx-delete-attached-media/

      Thank you

Viewing 3 reply threads
  • The topic ‘Deleting product, but not deleting product photos belongs to’ is closed to new replies.