The discussion revolves around bulk management of user accounts based on their registration email domain, particularly for handling spam accounts using a blacklisted domain. markersocial seeks a way to delete, suspend, or anonymize users registered with a specific domain, noting that the accounts are not migrated and the volume is large. codinghorror warns of potential performance issues, while pfaffman confirms it’s possible via the Rails console. fzngagan provides a detailed method to identify users by email domain and anonymize them using the UserAnonymizer class, offering sample code to filter users by domain and anonymize them. markersocial appreciates the solution and asks about bulk silencing, to which fzngagan confirms it’s possible through the Rails console.
After the domains are blacklisted, the accounts that have already made it through are unaffected and can still be used.
I want to ask if anyone knows of a way to bulk destroy (delete user + all of their content), suspend or silence users based on their registration email domain?
In my case this would allow deleting/disabling hundreds of thousands of accounts that used the catchall domain technique to register.
@codinghorror - It’s not migrated data. I don’t mind painful and slow as the alternative of allowing the accounts to stay is probably worse For amounts of content, it’s a mix, some have none (usually the spammers intend to use these accounts later), some have minimal, some have heaps.