Manual:removeUnusedAccounts.php

From MediaWiki.org
Jump to: navigation, search


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

You can use deleteArchivedRevisions.php to first remove deleted revisions (e.g. after a massive vandalism/spam attack) and run removeUnusedAccounts.php afterwards.

Usage[edit | edit source]

Option/Parameter Description
--ignore-touched Skip accounts touched in last N days. If not set, it defaults to "0". In this case the script will check/remove all unused accounts up to the current date, including accounts created just a few seconds ago.
--ignore-groups List of comma-separated groups to exclude. Accounts from these groups will not be removed, also if they are unused.
--delete Delete the accounts. Running it without the parameter --delete, the script will only list the unused accounts.
Language: English  • polski • русский