News:

Wondering if this will always be free?  See why free is better.

Main Menu

How do you delete members in the masses?

Started by Biology Forums, May 03, 2013, 06:45:36 PM

Previous topic - Next topic

Biology Forums

I have loads of members who have registered, but have never logged in. I tried to delete them 20 at a time in: index.php?action=viewmembers but it's taking too long. Is there a way to increase the number of members listed per page? Currently it is 20, I want it to be at least 100. How do I do that?

Sir Osis of Liver

Run this query in phpmyadmin -



DELETE FROM smf_members WHERE lastLogin = 0;



edit:  fixed it for 1.1.18

When in Emor, do as the Snamors.
                              - D. Lister

Kindred

Doing direct database deletes like that is a bad idea, because there are interconnected tables that need to be taken into account. Just deleting the member from the table will result in other stuff that will need to be cleaned up eventually.

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Colin

What ever you do, backup before you execute any raw query.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Biology Forums

Thanks guys. Extra precaution is always taken with a large forum.

Kindred

even with extra precautions (like backing up), I still say that you should ***NOT*** be doing direct database deletes of users.
There are functions to properly handle the removal of members and associated data. Doing it directl in the database leaves a bunch of tangled cords hanging....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Biology Forums

Quote from: Kindred on May 06, 2013, 09:04:57 AM
even with extra precautions (like backing up), I still say that you should ***NOT*** be doing direct database deletes of users.
There are functions to properly handle the removal of members and associated data. Doing it directl in the database leaves a bunch of tangled cords hanging....

I agree, and for that reason alone, I'm doing it through the forum.

Sir Osis of Liver


Actually, if the users never logged in or posted, should do no harm to delete them (I've done it more than once).

When in Emor, do as the Snamors.
                              - D. Lister

Arantor

* Arantor will agree with Krash's last statement

Never logged in = no records anywhere else for them because they never logged in and thus never had chance to do anything.
Holder of controversial views, all of which my own.


Sir Osis of Liver


"Even a blind squirrel occasionally finds an acorn."

When in Emor, do as the Snamors.
                              - D. Lister

Arantor

Holder of controversial views, all of which my own.



Advertisement: