手册:removeUnusedAccounts.php
Appearance
MediaWiki版本: | ≥ 1.5.5 |
MediaWiki文件: removeUnusedAccounts.php | |
---|---|
位置: | maintenance/ |
源代码: | master • 1.42.3 • 1.41.4 • 1.39.10 |
类: | RemoveUnusedAccounts |
Details
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.
Options
选项/参数 | 描述 | Required |
---|---|---|
--delete | 删除账户。 Running it without the parameter --delete, the script will only list the unused accounts. | Optional |
--ignore-groups | List of comma-separated groups to exclude. Accounts from these groups will not be removed, even if they are unused. | Optional |
--ignore-touched | Skip accounts touched in last N days. 如果未设置,默认为“1”。 In this case the script will check/remove all unused accounts up to the current date, including accounts created just a few seconds ago. | Optional |
用法
php maintenance/removeUnusedAccounts.php [ --delete| --ignore-groups| --ignore-touched ]
Terminal
$ php maintenance/removeUnusedAccounts.php Remove unused accounts Checking for unused user accounts... Conversion script ...found 1. Run the script again with --delete to remove them from the database.
By default, this script lists unused accounts without deleting them. To delete the unused accounts, run this script with --delete.
Terminal
$ php maintenance/removeUnusedAccounts.php --delete Remove unused accounts Checking for unused user accounts... Conversion script ...found 1. Deleting unused accounts...done.