.st0{fill:#FFFFFF;}

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>

NickLitten


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"}
__CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"cff50":{"name":"Main Accent","parent":-1},"a344d":{"name":"Accent Transparent","parent":"cff50"}},"gradients":[]},"palettes":[{"name":"Default","value":{"colors":{"cff50":{"val":"var(--tcb-skin-color-0)"},"a344d":{"val":"rgba(46, 138, 229, 0.85)","hsl_parent_dependency":{"h":210,"l":0.54,"s":0.78}}},"gradients":[]},"original":{"colors":{"cff50":{"val":"rgb(0, 178, 255)","hsl":{"h":198,"s":1,"l":0.5}},"a344d":{"val":"rgba(0, 178, 255, 0.85)","hsl_parent_dependency":{"h":198,"s":1,"l":0.5}}},"gradients":[]}}]}__CONFIG_colors_palette__

Get In Touch

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

>