Language object cache, for faster wfMsg() performance with unusual languages, and...
[mediawiki.git] / maintenance / nukePage.php
blobb3bfc7626de4b5efb3f7b4160371a25be7ff75b0
1 <?php
3 /**
4 * Erase a page record from the database
5 * Irreversible (can't use standard undelete) and does not update link tables
7 * @file
8 * @ingroup Maintenance
9 * @author Rob Church <robchur@gmail.com>
12 require_once( 'commandLine.inc' );
13 require_once( 'nukePage.inc' );
15 echo( "Erase Page Record\n\n" );
17 if( isset( $args[0] ) ) {
18 NukePage( $args[0], true );
19 } else {
20 ShowUsage();
23 /** Show script usage information */
24 function ShowUsage() {
25 echo( "Remove a page record from the database.\n\n" );
26 echo( "Usage: php nukePage.php <title>\n\n" );
27 echo( " <title> : Page title; spaces escaped with underscores\n\n" );