Manual:nukePage.php

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.6
<translate> MediaWiki version:</translate>

詳細

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.

File:OOjs UI icon notice-destructive.svg <translate> Warning:</translate> This script attempts to remove unused entries from the text table, which can cause potential data loss.

オプション/引数

オプション/引数 説明 必須かどうか
title pagetitle is the title of the page you want to delete. Include the namespace and use underscores instead of spaces. <translate> Required</translate>
--delete Use 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. <translate> Optional</translate>

使用法

php maintenance/nukePage.php pageTitle [ --delete ]

Dry run to check deletion

Terminal

Making deletion action

Terminal

関連項目