Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Auto Purge Users

765 sites Security covered Drupal 10–11 Purge ecosystem
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.

Depends on

Dependencies of the latest stable release

  • user Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
13
Tracked since
Oct 2024
Latest release
2 months ago
Releases (12 mo)
4 ▼ from 9
Maintenance
Active

Release Timeline

Releases

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