Jump to content

Manual:nukeNS.php

From mediawiki.org
This page is a translated version of the page Manual:NukeNS.php and the translation is 44% complete.
MediaWiki バージョン:
1.10

詳細

nukeNS.php file is a maintenance script to remove all pages with only one revision (by default) from the MediaWiki namespace , without flooding recent changes, deletion logs, etc. It has originally been added to remove the content of unchanged interface texts from the MediaWiki namespace, but it can be used to basically delete all pages from any namespace.

警告 警告: このスクリプトは text テーブルから未使用のエントリーを削除しようとします。これは潜在的なデータ損失を引き起こす可能性があり、大規模なウィキでは非常に低速になります。 MediaWiki 1.44 以降では、$wgMiserMode が有効な場合、この手順はスキップされます。

オプション/引数

オプション 説明 必須かどうか
--delete Actually delete the pages and their revisions. Without this option, the script works in dry-run mode. 省略可能
--ns Namespace to delete from. Defaults to the MediaWiki: namespace. You must provide the namespace number, not the name. See Manual:名前空間 for a list. 省略可能
--all Delete pages regardless of revision count. With this option, not only pages with only one single revision, but also pages with more than one revision will be deleted. 省略可能

使用法

php maintenance/run.php nukeNS [ --delete| --ns| --all ]
MediaWiki バージョン MediaWiki 1.39 以前では、メンテナンス スクリプトを php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。

Checking potential deletion

Terminal

Making deletion

Terminal

関連項目