Automatic user deletion

Administration tools ::: tool_userautodelete
Maintained by Niels Gandraß
Automatically deletes users that have not logged in for a configurable number of days. Supports sending customizable inactivity warning mails prior to final deletion and allows for GDPR-compliant deletion of all personally identifiable information (PII) from the user records.

Automatic user deletion 1.4.0

Moodle 4.1, 4.2, 4.3, 4.4, 4.5, 5.0, 5.1
Released: Friday, 10 October 2025, 2:53 PM

Changelog

  • Add setting to limit user selection to users that are already suspended. This can be useful if your user lifecycle is externally managed (e.g., via SSO) or contains a suspension phase before the user is finally deleted.
  • Ensure compatibility with Moodle 5.1
  • Fix background color of Bootstrap badges on dry-run page with Moodle 5.1
  • Add Moodle 5.1 and all supported PHP versions to CI test matrix
  • Comply with Moodle coding style version 3.6

Version information

Version build number
2025101000
Version release name
1.4.0
Can be updated from
1.0.0 (2025051300), 1.0.1 (2025051700), 1.1.0 (2025052000), 1.1.1 (2025052100), 1.2.0 (2025061100), 1.2.1 (2025082500), 1.3.0 (2025100600)
Maturity
Stable version
MD5 Sum
9304b3cb07ddb7a5020da22d9bd91a87
Supported software
PHP 7.4, PHP 8.0, PHP 8.1, Moodle 4.1, Moodle 4.2, PHP 8.2, Moodle 4.3, PHP 8.3, Moodle 4.4, Moodle 4.5, Moodle 5.0, PHP 8.4, Moodle 5.1
  • Latest release for Moodle 4.1
  • Latest release for Moodle 4.2
  • Latest release for Moodle 4.3
  • Latest release for Moodle 4.4
  • Latest release for Moodle 4.5
  • Latest release for Moodle 5.0
  • Latest release for Moodle 5.1

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS tag
v1.4.0

Default installation instructions for plugins of the type Administration tools

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "mytool") in the "admin/tool" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation