Some of this work has been inspired by https www kingrosales com blog how-to-properly-delete-all-woocommerce-products.
Upload the plugin files to the wp-content plugins directory, or install the plugin through the WordPress plugins screen directly..
Click on Woo Product Remover, and then click Delete All button.
The plugin will let you know how many products product variations have been deleted, if any...
Just setup the plugin, go to Woo Product Remover screen, and click delete all..
Deleting the products and leaving those will exhaust your resources, especially if you have database.
The plugin removes all standard woocommerce product types, including simple, grouped, external and variable, as well as related variations...
It also removed all the categories that had products in them, and left some stuff to the database so it's mess right now..
Browse the code, check out SVN repository, or subscribe to the development log by RSS...
Adding support to keep categories, tags and taxonomies related to the removed products.
Read more