Timeline for How can I bulk delete users?
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 20, 2021 at 13:07 | comment | added | hotwebmatter | Why cancel the script execution after two hours? I'd recommend leaving it running overnight. | |
| Sep 18, 2021 at 0:48 | comment | added | Ryan Hartman | In order to remove users, you need to run all the hooks. I found drush to be the fastest way to do that. Perhaps instead of putting 150k users in a file, instead try a smaller set like 10k users. My site had about 50k users and we removed 30k over about 15 hours YMMV. Not sure why you had to edit the exec time, this is a bash script, that will run php over and over vs one long thread. | |
| Sep 17, 2021 at 23:26 | comment | added | Mandock D. | @Ryan, I tried your suggestion on my test site, I had to adjust for execution time, etc, etc in my config files...something I don't have access to on the live site. Cancelled process after about 2hrs of running. Thanks, but I hope I can get a faster and more efficient solution. | |
| Sep 17, 2021 at 20:02 | comment | added | avpaderno♦ | With over 150000 user accounts, it doesn't seem feasible to write the email addresses in a text file, and then delete the user accounts with Drush. | |
| Sep 17, 2021 at 19:34 | history | answered | Ryan Hartman | CC BY-SA 4.0 |