purge_users

Auto Purge Users lets administrators delete inactive users based on time conditions. Users are selected as per criteria that check for different types of user inactivity. Some of the criteria that are used to select users are

  • Those who exceed a configured period of inactivity in days, months, etc..
  • Those who have not activated their account since registration for a specified period of time.
  • Those who have not logged in for a long periods of time.

The users who are purged can be notified that their account has been purged. Optionally you can limit the purge to specific roles like authenticated, etc..
You can go to “Administer -> People -> Auto Purge Users” to configure the duration of account inactivity, status of account and filter the users by roles.

The content created by the users being purged can also be purged or can be re-assigned to anonymous users after the purge. The user cancellation methods on the form provides the functionality to assign purged user content to anonymous user or entirely delete the content. Users can be deleted on cron by enabling the auto purge option in configuration page or can be deleted manually by pressing the delete users button. Users deleted during cron are logged via the watchdog.

Important notes:

This module has to use custom logic especially when reassigning content to guest / anonymous.
So please

  • test and use the module carefully
  • ensure to have regular and working backups
  • exclude roles which should never be touched (especially roles with lots of content created)
  • report and fix bugs and issues with us

The background is, that there are no good core concepts for some of the cases, which would allow to solve these better.

Project information

Releases