I have a neglected blog, and I just noticed that I have 27000 members. Issue is that almost all of them are spam accounts.
Is there an easy and safe way (properly) to remove a large number of them at once?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
June 22, 2011 1:14am
Subscribe [4]#1 / Jun 22, 2011 1:14am
I have a neglected blog, and I just noticed that I have 27000 members. Issue is that almost all of them are spam accounts.
Is there an easy and safe way (properly) to remove a large number of them at once?
#2 / Jun 22, 2011 8:43am
Hi, Erin.
First things first, turn off new member registrations.
Second, clear out all Pending memberships. See how many that leaves.
Then it gets tricky. I’d trim down the newer ones based on age. Or if you were feeling particularly bold, I’d nuke ‘em all. (Trimming based on age.)
Make sense?
#3 / Jun 22, 2011 11:59am
My issue is that the member page only lists like 30 members at a time so to delete 27000 will take me a loooooooooooooooooooooong time!
Any suggestions?
#4 / Jun 22, 2011 12:12pm
Check out the following thread: Delete spam members where we’ve identified ‘member_id’
It’s brief, but has some info.
#5 / Jun 22, 2011 12:17pm
Thanks Kernon!
Does that help, Erin? Note that new member registrations are off by default in more recent versions of ExpressionEngine.
#6 / Jun 22, 2011 12:24pm
I suppose I could do the opposite, get a white list of the ones I want to keep and remove all the others.
#7 / Jun 22, 2011 1:52pm
Still have the issue that the screen only shows 20 or so pending members at a time. And after I filter pending, it goes back to Member Groups.
#8 / Jun 22, 2011 2:55pm
The idea implicit in the other thread I linked to is that you would use, say, phpMyAdmin to perform database queries to delete the junk members in mass; that’s why it was important to know the tables where EE stores member data.
#9 / Jun 22, 2011 4:03pm
EE stores member information in three tables.
1. exp_members
2. exp_member_data
3. exp_member_homepage
You’d need to back up those tables as a bare minimum before trying to delete rows in the three tables mentioned here.
#10 / Jun 23, 2011 12:50am
ok, thanks. Not a great solution, but might be doable if I can find the members I want to keep.
#11 / Jun 23, 2011 6:23pm
Have you considered pruning your members using Admin > Utilities > Date Pruning?
Another helpful option might be Purple DogFish’s Member Utilities.
#12 / Jun 23, 2011 6:56pm
I did it via phpMyAdmin, though the Date Pruning would have worked as well. As would the Member Utilities.
Thanks for all the info, feel free to close this.
#13 / Jun 24, 2011 2:44pm
Glad things are working again for you.. If anything else comes up, please do let us know in a new thread..