Manual:RemoveUnusedAccounts.php

removeUnusedAccounts.php is a maintenance script. An unused account is one which has no edits, no deleted edits, no log entries (34581), and no current/old uploads.

Invocation
php maintenance/removeUnusedAccounts.php [--help][--delete] Running it without any parameter will only list all unused accounts, giving a total at the end. To really delete the accounts, run it again with the parameter --delete.

Warning
Be aware that in its current form, this script deletes even recently created accounts, in a manner that when the user receives the validation email, the account no longer exists. To avoid this, apply the patch suggested on the discussion page.