Manual:NukeNS.php/ro
Appearance
MediaWiki version: | ≥ 1.10 |
MediaWiki file: nukeNS.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes: | NukeNS |
Details
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. A fost adaugat initial pentru a sterge continutul textului interfetelor din spatiul de nume MediaWiki, dar practic poate fi folosit pentru a sterge toate paginile din "orice" spatiu de nume.
Options/Arguments
Option | Description | Required? |
---|---|---|
--delete | Sterge paginile si reviziile lor. Without this option, the script works in dry-run mode. | Optional |
--ns | Namespace to delete from. Defaults to the MediaWiki: namespace. You must provide the namespace number, not the name. See Manual:Namespace for a list. | Optional |
--all | Sterge pagini indiferent de numarul de revizii. Cu aceasta optiune, nu doar paginile cu o singura revizie, dar si paginile cu mai mult de o revizie vor fi sterse. | Optional |
Usage
php maintenance/nukeNS.php [ --delete| --ns| --all ]
Checking potential deletion
Terminal
$ php maintenance/nukeNS.php --ns 6 delete: File:Screenshot 2022-03-11 at 1.47.10 PM.png delete: File:Screenshot 2022-03-11 at 3.58.05 PM.png delete: File:Screenshot 2022-03-11 at 3.58.12 PM.png To update the database, run the script with the --delete option.
Making deletion
Terminal
$ php maintenance/nukeNS.php --ns 6 --delete delete: File:Screenshot 2022-03-11 at 1.47.10 PM.png delete: File:Screenshot 2022-03-11 at 3.58.05 PM.png delete: File:Screenshot 2022-03-11 at 3.58.12 PM.png Searching for active text records via contents table...done. Searching for inactive text records...done. 0 inactive items found.