Manual:RemoveUnusedAccounts.php/ru

Версия MediaWiki:
1.5.5
Category:MediaWiki code/ru#RemoveUnusedAccounts.php

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.

Осторожно! Предупреждение: If you use a Shared database, this script can damage your database, because it will remove users if they appear unused in the current database, without checking if they have be used on another database.

Options

Option/Parameter Описание Required
--deleteDelete the accounts. Running it without the parameter --delete, the script will only list the unused accounts. По желанию
--ignore-groupsList of comma-separated groups to exclude. Accounts from these groups will not be removed, even if they are unused. По желанию
--ignore-touchedSkip accounts touched in last N days. If not set, it defaults to "1". If "0" is given the script will check/remove all unused accounts up to the current date, including accounts created seconds ago. По желанию

Использование

php maintenance/run.php removeUnusedAccounts [ --delete| --ignore-groups| --ignore-touched ]
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.
Terminal

By default, this script lists unused accounts without deleting them. To delete the unused accounts, run this script with --delete.

Terminal

See also

Category:Maintenance scripts/ru#RemoveUnusedAccounts.php Category:User maintenance scripts/ru
Category:Maintenance scripts/ru Category:MediaWiki code/ru Category:User maintenance scripts/ru