Instructions to completely remove WooCommerce from your WordPress website (including files and database).

You may not know, when you disable and delete the WooCommerce plugin in the usual way, only the plugin’s files and folders are deleted. Other data such as: product information, product categories, orders, etc. continue to be stored in the database. This will make the website’s database cumbersome and slow, because the amount of data generated by WooCommerce is often very large. In this article, I will show you how to completely remove WooCommerce and its data in case you no longer need it.
Explore more:
- Delete unused records in WordPress database
- Delete unused tables in WordPress database
Completely remove WooCommerce
1. Access the host through the File Manager of cPanel / DirectAdmin or FTP software => open the file wp-config.php => find the line:
/* That's all, stop editing! Happy blogging. */
and insert the following code above it and save:
define( 'WC_REMOVE_ALL_DATA', true );
2. Disable and remove the WooCommerce plugin as usual. If you have deleted the word before, proceed to reinstall the plugin and then delete it.
3. Remove the code (inserted in step 1) from the file wp-config.php and then save it.
It’s simple, right? Good luck!
For files and images of products that you have uploaded, go to Media => Library to find and delete them manually.
If you liked this article, follow my blog to regularly update the best and latest articles. Thanks very much. 🙂

