Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Auto Purge Users

726 sites Security covered
View on drupal.org

"Auto Purge Users" automatically deletes inactive users based on configurable criteria such as time since last login or account activation. It allows administrators to optionally notify purged users, limit the purge to specific roles, and manage content created by those users by reassigning it or deleting it.

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
  • 3517192

  • 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.

Version 4.x

BC breaking change: the notification delay is now calculated relative to each rule's expiration value #3517192: Calculate the notification time by subtracting the notification period from each rule's value.

Version 5.x

New policy-enabled experimental version. Use with caution.

Activity

Total releases
11
First release
Jan 2025
Latest release
4 weeks ago
Releases (12 mo)
4 ▼ from 7
Maintenance
Active

Release Timeline

Releases

Version Type Release date
5.0.0 Stable Jun 17, 2026
5.0.0-beta3 Pre-release May 13, 2026
5.0.0-beta2 Pre-release Apr 13, 2026
5.0.0-beta1 Pre-release Jan 13, 2026
5.0.0-alpha3 Pre-release Apr 29, 2025
5.0.0-alpha2 Pre-release Apr 27, 2025
5.0.0-alpha1 Pre-release Apr 26, 2025
4.0.0 Stable Apr 26, 2025
5.x-dev Dev Apr 26, 2025
4.0.0-rc2 Pre-release Mar 8, 2025
4.0.0-rc1 Pre-release Jan 18, 2025