Deleting a store, product or category leaves behind remnants

0

I have noticed that when I delete a store, all its sub tables should also get deleted but the product_attributes and product_attribute_terms get left behind. This can get to be a lot of extra empty tables eventually.

Also when I delete a product or category, I need to keep re-indexing manually to make sure they don’t keep appearing in the global products and categories. This process should be automatic.

  • Jude
    • DEV MAN

    Hi there Erum

    I can confirm this is the case in both your points. This behaviour is not currently possible out of the box because of the way the plugin is built.

    That said I am marking a feature request on this and we can consider it depending on how many other members request something similar.

    Thanks for bringing this up !

    Cheers

    Jude

  • Erum
    • Syntax Hero

    I get what you mean regarding the auto indexing. Although it is a much needed feature especially when you have multiple stores and products and categories being added/deleted left, right and center.

    But the tables being deleted should be default behavior when deleting a store and if two are being left behind, then that is more of a bug that needs to be fixed.

  • Jude
    • DEV MAN

    Hi again Erum

    But the tables being deleted should be default behavior when deleting a store and if two are being left behind, then that is more of a bug that needs to be fixed.

    I agree in principle with this, there are some instances where the users may want to preserve their data when they manually delete + update to a higher version. I’m thinking a feature request makes most sense here like the way Woo does ( you have an option to delete all residual data when needed )

    https://docs.woothemes.com/document/installing-uninstalling-woocommerce/#section-2

    That said if you’d prefer having a bug report filed please open a new ticket and paste this there ( as this one is already a feature request ). We can have one of our developers investigate

    https://wpmudev.com/forums/#question

    Cheers

    Jude