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

 February 24, 2011

By  NickLitten

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>

snug cbd discount coupon 15% off

20% Off with Coupon: NICKLITTEN

I highly recommend the SNUG CBD Tincture to help keep you in the zone when programming!

In Partnership with SNUG CBD - American readers get 20% off


IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Shameless Trekkie, Belligerent Nerd, Englishman Abroad 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 remember: If at first you don't succeed then skydiving probably isn't a hobby you should look into.

Nick Litten

related posts:

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

Get In Touch

Iā€™m always looking for awesome input, feedback and critique!