Manual:DeleteDefaultMessages.php

deleteDefaultMessages.php is a maintenance script located in the maintenance directory that deletes all pages in the MediaWiki: namespace which were last edited by "MediaWiki default" with the reason "No longer required".

Usage
php deleteDefaultMessages.php