Manual:deleteDefaultMessages.php
MediaWiki version: | ≥ 1.6 |
MediaWiki file: deleteDefaultMessages.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.43.0 • 1.42.4 • 1.39.11 |
Classes: | DeleteDefaultMessages |
Details
editdeleteDefaultMessages.php file is a maintenance script to delete all pages in the MediaWiki:
namespace which were last edited by "MediaWiki default". Deletion will be done with the reason "No longer required".
Options
editOption | Description | Required |
---|---|---|
--dry-run | Perform a dry run, delete nothing | Optional |
Usage
editphp maintenance/run.php deleteDefaultMessages
Terminal
$ php maintenance/run.php deleteDefaultMessages --dry-run Checking existence of old default messages... * [[MediaWiki:Autoblockedtext]] * [[MediaWiki:Autoblocker]] * [[MediaWiki:Autoblocklist-summary]] * [[MediaWiki:Autoredircomment]] * [[MediaWiki:Autosumm-blank]] * [[MediaWiki:Autosumm-changed-redirect-target]] * [[MediaWiki:Autosumm-new]] * [[MediaWiki:Autosumm-newblank]] * [[MediaWiki:Autosumm-removed-redirect]] * [[MediaWiki:Autosumm-replace]] Run again without --dry-run to delete these pages.
Terminal
$ php maintenance/run.php deleteDefaultMessages Checking existence of old default messages... ...deleting old default messages (this may take a long time!)...done!
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.