Hi there,
There are a variety of options for this. Our Product CSV Import Suite extension includes a tool for deleting all products and all variations:

Link to image: https://d.pr/i/nrMCuX
Alternatively, I see this free plugin in the .org repository, though it doesn’t appear to have been tested recently:
https://ww.wp.xz.cn/plugins/woocommerce-remove-all-products/
Finally, doing a Google search for “WooCommerce delete all products” provides many different discussions / guides for doing this.
Whichever method you choose, I would definitely recommend taking a complete backup first (just in case there are some random side effects, aside from “deleting all your products”).
One last thing to mention — if possible, just increasing your WP Memory limit and PHP Execution time limit on the server might resolve the issue with your current solution crashing.
I hope that helps!
Thanks for your reply. The way I do it now works quite comfortably apart from the crashing, so I will first try to look into that memory and timeout thing.. feels like there might be something to gain there!
Hi there,
The way I do it now works quite comfortably apart from the crashing, so I will first try to look into that memory and timeout thing.. feels like there might be something to gain there!
Yeah, hopefully just increasing those memory/time limits fixes the issue with the import crashing! Let us know how it goes!
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.