Title: Remove WooCommerce Data
Last modified: January 27, 2023

---

# Remove WooCommerce Data

 *  Resolved [rayeason](https://wordpress.org/support/users/rayeason/)
 * (@rayeason)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/remove-woocommerce-data/)
 * 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)

 *  [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * (@anastas10s)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/remove-woocommerce-data/#post-16422206)
 * Hi there [@rayeason](https://wordpress.org/support/users/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](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](https://wordpress.org/support/users/rayeason/)
 * (@rayeason)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/remove-woocommerce-data/#post-16423331)
 * 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](https://drive.google.com/file/d/1rIU9s-lJAoZNDqNp1XjgLN9sXY3f8Do8/view?usp=drivesdk)
 *  [Igor H](https://wordpress.org/support/users/ihereira/)
 * (@ihereira)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/remove-woocommerce-data/#post-16431359)
 * 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](https://woocommerce.com/document/installing-uninstalling-woocommerce/#uninstalling-woocommerce)
 * Does that make a difference?
    -  This reply was modified 3 years, 4 months ago by [Igor H](https://wordpress.org/support/users/ihereira/).
 *  Thread Starter [rayeason](https://wordpress.org/support/users/rayeason/)
 * (@rayeason)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/remove-woocommerce-data/#post-16431434)
 * 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](https://drive.google.com/file/d/1ckjoHupfzjvv5u03TL-Cx1SkkEHz6pUS/view?usp=drivesdk)
 *  [Igor H](https://wordpress.org/support/users/ihereira/)
 * (@ihereira)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/remove-woocommerce-data/#post-16434285)
 * 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](https://wordpress.org/support/users/roxannestoltz/)
 * (@roxannestoltz)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/remove-woocommerce-data/#post-16529835)
 * Hi [@rayeason](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [remove data](https://wordpress.org/support/topic-tag/remove-data/)

 * 6 replies
 * 4 participants
 * Last reply from: [Roxy](https://wordpress.org/support/users/roxannestoltz/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/remove-woocommerce-data/#post-16529835)
 * Status: resolved