woocommerce/docs/code-snippets/uninstall_remove_all_woocom...

1.3 KiB

post_title menu_title tags current wccom url
Uninstall and remove all WooCommerce Data Uninstalling and removing data code-snippet https://woocommerce.com/document/installing-uninstalling-woocommerce/#uninstalling-woocommerce

The WooCommerce plugin can be uninstalled like any other WordPress plugin. By default, the WooCommerce data is left in place though.

If you need to remove all WooCommerce data as well, including products, order data, coupons, etc., you need to to modify the site's wp-config.php before deactivating and deleting the WooCommerce plugin.

As this action is destructive and permanent, the information is provided as is. WooCommerce Support cannot help with this process or anything that happens as a result.

To fully remove all WooCommerce data from your WordPress site, open wp-config.php, scroll down to the bottom of the file, and add the following constant on its own line above /* That's all, stop editing. */.

define( 'WC_REMOVE_ALL_DATA', true );

/* That's all, stop editing! Happy publishing. */ 

Then, once the changes are saved to the file, when you deactivate and delete WooCommerce, all of its data is removed from your WordPress site database.

Uninstall WooCommerce WPConfig