Manual: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 — скрипт обслуживания. Неиспользуемые учетные записи — которые не имеют правок, удаленных правок, записей в журналах и текущих/старых загрузок.
You can use deleteArchivedRevisions.php to first remove deleted revisions (e.g. after a massive vandalism/spam attack) and run removeUnusedAccounts.php afterwards.
Options
Option/Parameter | Описание | Required |
---|---|---|
--delete | Delete the accounts. Running it without the parameter --delete, the script will only list the unused accounts. | По желанию |
--ignore-groups | List of comma-separated groups to exclude. Accounts from these groups will not be removed, even if they are unused. | По желанию |
--ignore-touched | Skip accounts touched in last N days. If not set, it defaults to "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. | По желанию |
Использование
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.