Manual:removeUnusedAccounts.php
MediaWiki バージョン: | ≧ 1.5.5 |
MediaWiki ファイル: removeUnusedAccounts.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.44.0 • 1.43.3 • 1.39.13 |
クラス: | RemoveUnusedAccounts |
Details
removeUnusedAccounts.php はメンテナンス スクリプトです。 未使用のアカウント (unused accounts) とは、編集、削除された編集、利用者作成を除く記録エントリ、現在および過去のアップロードのいずれもないアカウントのことです。
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. |
オプション
オプション/パラメーター | 説明 | 必須かどうか |
---|---|---|
--delete | アカウントを削除します。 スクリプトを、パラメーター --delete なしで実行した場合は、未使用のアカウントを列挙するのみです (削除はしません)。 | 省略可能 |
--ignore-groups | 除外するグループをカンマ区切りで並べたリストです。 これらのグループに属するアカウントは、それらが未使用であっても除去されません。 | 省略可能 |
--ignore-touched | Skip accounts touched in last N days. 設定していない場合、既定値は「1」です。 「0」を指定した場合、スクリプトはその時点までの未使用アカウントを、数秒前に作成されたアカウントも含めて、すべて確認/除去します。 | 省略可能 |
使用法
php maintenance/run.php removeUnusedAccounts [ --delete| --ignore-groups| --ignore-touched ]
MediaWiki バージョン 1.39.13 以前では、メンテナンス スクリプトを
php maintenance/run.php scriptName
ではなく php maintenance/scriptName.php
を使用して実行する必要があります。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.