• Resolved rayeason

    (@rayeason)


    Hello and good day.

    I installed woocommerce in a multisite install under /cart/.

    I added the the following to my wp-config.php

    /** To fully remove all WooCommerce data from your WordPress site.
    /** define( ‘WC_REMOVE_ALL_DATA’, true );

    I uninstalled woocommerce deleted the /cart/ site, but forgot to uncomment define( ‘WC_REMOVE_ALL_DATA’, true );

    So the data is still in my original multisite.

    Is there a way of removing the data after I have already removed the mulsitite /cart/ that it was installed in?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi there @rayeason

    From what I gather, you went ahead with deleting the /cart/ site from your WordPress Multisite install, without removing the comment declaration in the code snippet while running it. Therefore, the data remains in your original Multisite.

    You can see the data it removes in this file:?
    https://github.com/woocommerce/woocommerce/blob/master/uninstall.php.

    You may want to reach out to your host that will be able to assist with the deletion of any WooCommerce data left in the database.

    I trust that points you in the right direction, but if you have more questions, let us know. We’re happy to help.

    Thread Starter rayeason

    (@rayeason)

    Hello and good day.

    Thank you for the response.

    And yes, you are correct.

    So I checked with my host who was able to confirm that all the tables on your list were removed when I uninstalled WooCommerce and removed the /cart/ site from the multisite installation.

    However, there were some items left in the DB which are not on your list.

    Should these remain in the DB? I don’t want to break my site ??

    https://drive.google.com/file/d/1rIU9s-lJAoZNDqNp1XjgLN9sXY3f8Do8/view?usp=drivesdk

    Hello,

    I uninstalled woocommerce deleted the /cart/ site, but forgot to uncomment define( ‘WC_REMOVE_ALL_DATA’, true );

    You can start making a backup, then reinstall WooCommerce, and open your site’s wp-config.php file, and add/uncomment the constant:

    define( 'WC_REMOVE_ALL_DATA', true );
    /* That’s all, stop editing! Happy publishing. */

    More information: https://woocommerce.com/document/installing-uninstalling-woocommerce/#uninstalling-woocommerce

    Does that make a difference?

    • This reply was modified 2 years, 1 month ago by Igor H.
    Thread Starter rayeason

    (@rayeason)

    Yes, thank you.

    I have performed your recommendation.

    My host has confirmed that most of the items in the DB have been removed.

    However, my host and I saw some other _wc_ prefixed in the DB as well.

    Those we are wondering about.

    https://drive.google.com/file/d/1ckjoHupfzjvv5u03TL-Cx1SkkEHz6pUS/view?usp=drivesdk

    Hi,

    I understand after removing WooCommerce there are tables that still exist on the database.

    I am wondering if there would be another plugin holding onto the tables, e.g. WooCommerce Admin.

    Is the site using any other plugin related to WooCommerce that is not yet uninstalled? Let us know what you find.

    Roxy

    (@roxannestoltz)

    Hi @rayeason ,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Cheers!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove WooCommerce Data’ is closed to new replies.