Manual:NukePage.php/ja

MediaWiki バージョン:
1.6
Category:MediaWiki code/ja#NukePage.php

詳細

nukePage.php file is a maintenance script to erase a page record from the database irreversibly (you cannot use standard undelete functions to restore it).

The script does not update link tables, which means that links to and from that page will still be present in Special:WhatLinksHere queries, for example.

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

オプション/引数

オプション/引数 説明 必須かどうか
titlepagetitle is the title of the page you want to delete. Include the namespace and use underscores instead of spaces.必須
--deleteUse this option to actually delete the page. Otherwise it will just print out if the page was found or not, but won't perform any deletion.省略可能

使用法

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

Dry run to check deletion

Terminal

Making deletion action

Terminal

関連項目

Category:Maintenance scripts/ja#NukePage.php Category:Content maintenance scripts/ja
Category:Content maintenance scripts/ja Category:Maintenance scripts/ja Category:MediaWiki code/ja