Author: dmzx
Special thanks to: martin
Extension Description:
Delete inactive users by cron, can set post count to a value and you can exclude multiple groups.
Separate period for never-activated registrations (default 7 days), independent of the period for activated accounts.
New option "Also delete never-activated registrations": deletes accounts that were never activated (ACP → Users → Inactive users, reason "Newly registered account") once their registration date is older than the selected period. Off by default. Accounts deactivated by an administrator or awaiting re-activation are never touched.
One codebase for phpBB 3.3.x and 4.0.x again: uses messenger.method.email on 4.0 and the legacy messenger on 3.3.
Clearer ACP explanations; email language falls back to the board default.
Fix cron crash "Impossible to set header Sender" when an email to an inactive user fails: the messenger is re-initialised per user and a failed send no longer aborts the run.
Users are deleted before the admin log entry is written; failed emails are logged separately.
Email language falls back to the board default language.
Code update for phpBB 4.0.0-a1
- Code cleanup.
- Code update.
- Update composer.json
- Code update
- Added admin log for deleted users.
- Added option for email message to deleted users.
Added option to show message after register user.
Screenshots:

Extension Download:
…
Installation:
- Download the latest release.
- Unzip the downloaded release, and change the name of the folder to `deleteinactiveusers`.
- In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
- Copy the `deleteinactiveusers` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at
(your forum root)/ext/dmzx/deleteinactiveusers/composer.json - Navigate in the ACP to `Customise -> Manage extensions`
- Look for `Delete Inactive Users` under the Disabled Extensions list, and click its `Enable` link.






