Want to remove WooCommerce data from your website? If you just uninstall the plugin and remove it then you are just deleting the file. Your WooCommerce data still exists in the database.

In this article, we will learn how to completely remove/uninstall WooCommerce from a WordPress site. Let’s find out together!
Completely Remove/Uninstall WooCommerce Data
If you need to delete ALL WooCommerce data, including products, order data, etc., you will need to modify your site’s wp-config.php file before deactivating and deleting the plugin.
Note: You should follow this step before uninstalling WooCommerce. If you deleted it, then you need to reinstall WooCommerce and then you follow this step.
To completely remove all WooCommerce data from your WordPress site, open your site’s wp-config.php file and add the following line:
define( 'WC_REMOVE_ALL_DATA', true ); /* That’s all, stop editing! Happy publishing. */

After adding the above line in the wp-config.php file , when you deactivate and delete WooCommerce, it will delete all its data from your WordPress site database.
summary
That is all. I hope this article helped you completely uninstall WooCommerce and its data.
If everything works as expected, please comment and share this article.
In addition, you can follow the WordPress Tips section and follow Facebook for more new knowledge.

