Hi Benjamin,
I am troubleshooting a woocommerce issue, and after having tried everything, i need to delete the woocommerce tables and then reinstall woocommerce and it will reinstall the tables as well. I just wondered if you had any advice for the easiest way to do this – maybe involving this plugin?
Check if woocommerce has an option to uninstall everything when the plugin is removed. Most popular plugins have such an option.
> and also – if i was to delete Woocommerce, for example – a plugin which uses the database -if asks “Are you sure you want to remove this and all of its data?” I pressed no because if it’s using the same database data as the original non-staging site, would it remove that data?
Usually, this has nothing to do with the “same” database. WP Staging is using prefixed database tables which are independent from the live system so any operation on the staging site should never affects the live site.
But If a WordPress plugin ignores that it would theoretically be possible to wipe out the live data. I have no confirmed case where that ever happened, though. Even the author of this ticket never replied to my question which plugin he was using so I can only assume that he was working on the live site instead of the staging site and did not notice that but I can not say that for sure.
Best would be to ask woocommerce support if there is an option to reset woocommerce data.