How can I tell WordPress to remove deleted users from the database automatically?

I found that I can go into phpMyAdmin > wp_signups and manually remove them, but this would be a hassle for those that admin my site.

I've been spending 2 days looking for plugins, code snippets and hacks but I can't find a way to accomplish this. Can someone please help with this major issue?

1 Answer 1


Assuming there is some commonality between the users you want to delete, you might look at the answers to this question: Delete all subscribers from wp_users and wp_usermeta a few thousand at a time

Make sure you have a backup of your database, though, as an error in the selection of the users could delete important users (like admins). If you are going to go this route, test the sql statement first to ensure you didn't select a critical user, or one that you really don't want to delete.

In fact, I'd copy the WP database, and then 'practice' on that database.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.