Drupal housekeeping module – User Prune delete those annoying dead dodgy or spam users


Feb 24

This little website has been online since 1998 (back in the embarrassing days of terrible bedroom derived HTML layouts) and running Drupal since Spring 2007. Over the course of the last four years of drupalishness, the online world has been attacked by spammers – the web equivalents of junk mailers.

I was just upgrading a few modules, tidying and demoting some old content and found hundreds of registered users that have never ever been logged on. So, it;s time for housekeeping and delete that stuff to trim it down.

Bring on the User Prune module – http://drupal.org/project/user_prune

Very cool and once uploaded, installed in ../sites/all/modules just enable it:

pruning old users from a drupal website

and then go run it /admin/user/prune (obviously you would put your domain name in place of projex :/ duh! )

It’s a very cool utility and neatly removed just over 90 duff user accounts:

running the user prune module

final stage of user cleanup is to use the standard drupal user interface to get rid of any blocked users. This is real easy just goto /admin/user/user (same domain rules apply you ninny 😉 )

Select BLOCKED users and then ZAP em all

<insert evil laughter here>


About the Author

IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Alpha Nerd and Passionate Eater of Cheese and Biscuits. Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day. Enjoy your stay, feel free to comment and in the words of the most interesting man in the world: Stay thirsty my friend.