Purge users who have not logged in for a very long time
Context: We have a ton of users on civicrm.org, for various reasons (old spam accounts, people who thought it was the way to get started with civicrm, etc).
Proposition: I would like to purge users who have not logged-in for 1000 days, roughly 3 years. This totals around 9,500 accounts of 13,000 accounts (I already purged 2500 accounts from people who never logged-in, mostly spam).
Or if we use 2000 days, 7,854 users would be deleted.
Why? At first because I was running into a performance issue (infra/ops#962 (closed)), but also because I think we should periodically cleanup old data. I realize that most of this data also lives in the CRM too, but I intend to clean that up as well eventually, and deleting the Drupal accounts first will help.
The purge_users module is pretty handy, it allows us to exclude anyone who has a role, for example, so that we do not delete historical contributors.
The config looks like this:
Feedback welcome.
Ping @josh @MikeyMJCO @nicol because I'm sure you will have some interesting thoughts.