By fyl on
I get a reasonable number of people on NicaLiving.com who request a login but never actually log in. That is, they have signed up and been sent an activate link but never use it. I would like to delete these accounts if they don't activate them after, say, a week.
Am I missing something that would do this?
Comments
Subscribing
I have no idea, myself, but I'd like to know about something like this. Surely there is the possibility, or else it wouldn't take much for someone who knows what they're doing to program it..
A relatively quick manual
A relatively quick manual method is the admin/user/user page.
Sort users by "status" to get the inactive ones, take a look at their "Member for" and "Last access", and select the ones to be deleted.
http://drupal.org/project/ina
http://drupal.org/project/inactive_user
you can have a glance on above module although its in drupal 5 but gimme some time if its not been maintaining by any one I'll try my level best to provide drupal 6 version of it.
Work Hard to understand what you have to do b4 U start, You may not be able to develop every detail but the more U know the less risk you take.
http://drupal.coolpage.biz
I use that
I use that module (site is still D5 but an upgrade is on the list) but that deals with long-term inactivity. I was going to take a look at it to see if I could add this additional functionality but, first, I figured I would ask. There is so much out here it is easy to miss what you need.
Inactive user already has
Inactive user already has the functionality to both block and delete inactive users. If they haven't ever logged in that should qualify. Plus it gives the reminder e-mails (if you want) to try anfd get them to visit.
I remember something else to delete users as well, but I seem to recall it was D5 also. You can check easily check just the User access/control section of the downloads. Or try Search downloads (turn the block on in your profile).
---
"Nice to meet you Rose...run for your life." - The Doctor
My first public Drupal site - EyeOnThe503
Need two options
I want to delete people who have never logged in after a short time (like 7 days) but notify and eventually block long-term users that have been inactive for a much longer time (like a year). Clearly I could add this to inactive user but just wanted to see if I was missing the obvious answer first.
This might not would be the best method, but what about...
This might not would be the best method, but what about writing a SQL statement in the MySQL database that will delete any users that have never been activated, and whose create date is over 7 days (1 week)... then create a Cron task to run that query? Or am I getting too far off the deep end with this thought? It wouldn't require any module (so less memory usage), and would require no additional work from the site admin (you, I'm assuming), once it was done. Of course, I'd definitely recommend testing it first to be sure you have everything sorted out correctly. ;0)
That works
That would probably be my choice for "quick and dirty" but it does seem like it would be nice to actually have this happen in a module. I am comfortable with this solution but many would not be.
Auto-delete user who never logged in
Subscribe
Drupal 7 rule solution
Here is a rule export I created for D7 that deletes all new user accounts that have not logged in since having the account created nor has a role assigned.
It has a 7 day buffer before deleting the accounts.
Just copy the code and import it into Rules.
Certified Drupal Site Builder 7 & 8
For those interested in just
For those interested in just the PHP code that is in the rule here it is:
Certified Drupal Site Builder 7 & 8
I am trying to import your
I am trying to import your code into rules but it gives an error "Missing the required module php." I did not understand who to figure it out.
You need to turn on the
You need to turn on the Drupal Core PHP filter (php).
/admin/modules > Core > PHP filter (php).
Ralph Manis
Infinitee Designs
https://www.infinitee-designs.com/
https://www.infinitee-designs.com/webdesign
https://www.infinitee-designs.com/t-shirts
Works like a charm!
Deleted 37307 accounts in under 5 minutes... Thank you very much!
Ralph Manis
Infinitee Designs
https://www.infinitee-designs.com/
https://www.infinitee-designs.com/webdesign
https://www.infinitee-designs.com/t-shirts
Drupal 8 solution
https://www.drupal.org/project/purge_users
Please check this module for deleting inactive users.