Manual:RemoveUnusedAccounts.php/fi
MediaWiki version: | ≥ 1.5.5 |
tiedosto MediaWiki: removeUnusedAccounts.php | |
---|---|
Sijainti: | maintenance/ |
Lähdekoodi: | master • 1.43.1 • 1.42.6 • 1.39.12 |
Sarjat: | RemoveUnusedAccounts |
Details
removeUnusedAccounts.php is a maintenance script. An unused account is one which has no edits, no deleted edits, no log entries (aside from user-creation), 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
Option/Parameter | Description | Pakollinen |
---|---|---|
--delete | Delete the accounts. 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. 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. | Optional |
Usage
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
$ php maintenance/run.php removeUnusedAccounts 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/run.php removeUnusedAccounts --delete Remove unused accounts Checking for unused user accounts... Conversion script ...found 1. Deleting unused accounts...done.