Manual:removeUnusedAccounts.php

From Linux Web Expert

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.5.5
<translate> MediaWiki version:</translate>

Details

removeUnusedAccounts.php jest skryptem konserwacyjnym. Pozwala na usunięcie nie używanych kont, z których nie zostały wykonane żadne edycje, usunięte edycje, czynności, przesłania plików.

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

Opcje

Opcja/Parametr Opis Wymagana
--delete Delete the accounts. Running it without the parameter --delete, the script will only list the unused accounts. <translate> Optional</translate>
--ignore-groups List of comma-separated groups to exclude. Accounts from these groups will not be removed, even if they are unused. <translate> Optional</translate>
--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. <translate> Optional</translate>

Użycie

php maintenance/removeUnusedAccounts.php [ --delete| --ignore-groups| --ignore-touched ]
Terminal

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

Terminal

Zobacz też