on-internet
← Community

How to delete completed orders in WooCommerce using a MySQL query

Stack Overflow ·

I want to delete all completed orders in WooCommerce using a single MySQL query. I am having a performance issue with the WordPress admin dashboard: when I try to view completed orders, the page goes blank (likely memory exhaustion due to 7,823 completed orders). Is there a safe way to delete all completed orders directly using a MySQL query in phpMyAdmin?

Comments

Sign in or sign up to comment and upvote.

No comments yet.