Handbuch:nukePage.php
Appearance
MediaWiki Version: | ≥ 1.6 |
MediaWiki-Datei: nukePage.php | |
---|---|
Speicherort: | maintenance/ |
Quellcode: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Klassen: | NukePage |
Details
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.
Optionen/Argumente
Option/Argument | Beschreibung | Notwendig? |
---|---|---|
title | pagetitle is the title of the page you want to delete. Include the namespace and use underscores instead of spaces. | Notwendig |
--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. | Optional |
Verwendung
php maintenance/nukePage.php pageTitle [ --delete ]
Dry run to check deletion
Terminal
$ php maintenance/nukePage.php FooPage Searching for "FooPage"...found "FooPage" with ID 258. Searching for revisions...found 1.
Making deletion action
Terminal
$ php maintenance/nukePage.php FooPage --delete Searching for "FooPage"...found "FooPage" with ID 258. Searching for revisions...found 1. Deleting page record...done. Cleaning up recent changes...done. Deleting revisions...done. Searching for active text records via contents table...done. Searching for inactive text records...done. 0 inactive items found. Updating site stats...done.