Woocommerce shows a list of customers and information about them. How do I delete customers who have never made an order? I can’t do this from ‘users’ b/c wordpress does not give me the order information.
I have 13,000 customers I want to delete. If there is a code I can run that would be great. thanks
I understand after deleting customer in database level, WooCommerce is still showing them under WooCommerce > customers.
If it were up to me, before deleting them, I’d download the list of customers, under WooCommerce > customers you will be able to see a download button:
Why I’d like to keep the list? Because of marketing purposes, many sellers spend years creating a good group of customers, you can use that list to create a marketing strategy, newsletters, etc. MailChimp, and MailPoet are free plugins that might help you with this.
However, I understand your point. If you need to delete them, can you please head to WooCommerce > status > tools > clear transients, and click it? You can clear the site cache as well.
Does the issue persist after that? Let us know how that goes.
I understand, you can refer to this forum thread that includes a SQLquery (That you can adapt according to your own needs) to delete all customers, please make sure to back up before making any critical change, more information is here.
I used those queries and tried those plugins but what I’m tryong to explain is that it deletes users from the user table but NOT from the woocommerce customer table. To do that I ran:
SELECT * from wp_wc_customer_lookup where user_id not in (SELECT wp_users.ID FROM hyg_users) LIMIT 400;
Viewing 8 replies - 1 through 8 (of 8 total)
The topic ‘how do delete customers’ is closed to new replies.