February 24


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

By NickLitten

February 24, 2011

drupal, housekeeping

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 😉 )

Drupal housekeeping module - user prune delete those annoying dead dodgy or spam users 1

Select BLOCKED users and then ZAP em all

<insert evil laughter here>

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Join the IBM i Community for FREE Presentations, Lessons, Hints and Tips