Uninstalling the WooCommerce plugin
Removing WooCommerce from your site is as simple as going to the admin area of your WordPress site, selecting the WooCommerce plugin in the plugin list and uninstalling it.
However, if you look at the database, you will see that the WooCommerce-related tables are still there.
So, if you want to remove the plugin for good, along with its data, you need access to the wp-config.php file, where you will find the following comments:
/* Add any custom values between this line and the "stop editing" line. */
/* That's all, stop editing! Happy publishing. */Before removing the plugin in the site’s admin area, edit the wp-config.php file and add the following between these two comments:
define('WC_REMOVE_ALL_DATA', true);Don’t forget to save your changes!
You can now remove the WooCommerce plugin.
After removing it, edit the file again and remove the line you added.
If you have access to the site’s database, you can confirm that the WooCommerce-related tables are gone.