Manual:removeUnusedAccounts.php
From MediaWiki.org
| MediaWiki File: removeUnusedAccounts.php | |
|---|---|
| Location: | /maintenance/ |
| Source code: | HEAD |
| Classes: | None |
removeUnusedAccounts.php is a maintenance script. An unused account is one which has no edits, no deleted edits, no log entries and no current/old uploads.
[edit] 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.
[edit] 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.