I cloned our Live site to a shared hosting account to test out upgrading PHP. Unfortunately, our Live database is huge (60,000 orders, 8,500 events, etc.), and I am pretty sure that it is having a very negative effect on the loading speed of everything. I’d like to delete all of the expired events via SQL in PHPMYADMIN, using a query similar to this snippet for deleting Woocommerce Orders:
update wp_posts set post_status = 'trash' where post_type = 'shop_order';
The problem is that I only want to delete past events, as I would like to keep the upcoming events in the database for testing. Is there a way to use something like the previous code, but set for Tribe Events with an Event End Date less than or equal to Feb 1st?
Thank you!