How can I delete all of my product at once?

[ad_1]

Hi @rabbit127

I understand that you are looking to bulk delete your WooCommerce products.

You may find good pointers in this article:

But, since you no longer wish to use the site for ecommerce, removing WooCommerce altogether may be worthwhile.

I tried to delete the WooCommerce plugin but it didn’t work the products still in there

Deactivating and deleting the WooCommerce plugin does not remove any data in your site’s database – it requires an additional destructive step.

If you wish to erase everything WooCommerce-related, you will want to add the following code in your wp-config.php file **before** deactivating and deleting the plugin.

define( 'WC_REMOVE_ALL_DATA', true );
/* That’s all, stop editing! Happy publishing. */ 

This code should be added at the bottom of the wp-config.php file, on its own line above the “That’s all, stop editing” comment. For reference, kindly check this documentation –

I can’t thank you enough. Problem solved ^_^

  • This reply was modified 13 minutes ago by rabbit127.

Hi @rabbit127

I’m glad that the problem is solved! 🙂

If you have a moment, we’d love if you could leave us a review:

Thank you!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer