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 list, 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.
Completely remove WooCommerce
1. Access the host through the File Manager of cPanel/ DirectAdmin or FTP software => open the file
wp-config.php out => find the line:
and insert the following code above it and save:
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 then save.
It’s simple, right? Good luck!
For files and images of products that you have uploaded, please visit Media => Thư viện to find and delete it manually.
If you liked this article, follow my blog to regularly update the best and latest articles. Thanks very much. 🙂