Manual:NukeNS.php

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:NukeNS.php and the translation is 40% complete.

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎català • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎română • ‎suomi • ‎日本語

Detalles

nukeNS.php file is a maintenance script to remove all pages with only one revision (by default) from the MediaWiki namespace , without flooding recent changes, deletion logs, etc. It has originally been added to remove the content of unchanged interface texts from the MediaWiki namespace, but it can be used to basically delete all pages from any namespace.

Invocación

php maintenance/nukeNS.php

Uso avanzado

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

Script dependant parameters

Opción/parámetro Descripción
--delete Actually delete the pages and their revisions. Without this option, the script works in dry-run mode.
--ns Namespace to delete from. Defaults to the MediaWiki: namespace. You must provide the namespace number, not the name. See Manual:Espacio de nombres for a list.
--all Delete pages regardless of revision count. With this option, not only pages with only one single revision, but also pages with more than one revision will be deleted.