Manual:NukeNS.php

nukeNS.php is MediaWiki maintenance script that removes pages with only 1 revision (by default) from the MediaWiki namespace, without flooding recent changes, deletion logs, etc.

Invocation
php maintenance/nukeNS.php

Advanced usage
php nukeNS.php [--delete] [--ns=namespace_number] [--all]