手册:removeUnusedAccounts.php

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:RemoveUnusedAccounts.php and the translation is 50% complete.

Other languages:
English • ‎español • ‎polski • ‎русский • ‎中文 • ‎日本語

removeUnusedAccounts.php是一个维护脚本。 An unused account is one which has no edits, no deleted edits, no log entries (任务T36581), 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.

用法

选项/参数 描述
--ignore-touched Skip accounts touched in last N days. 如果未设置,默认为“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 删除账户。 Running it without the parameter --delete, the script will only list the unused accounts.