Manual:NukeNS.php/ko
Appearance
| 미디어위키 버전: | ≥ 1.10 |
| 미디어위키 파일: nukeNS.php | |
|---|---|
| 위치: | maintenance/ |
| 소스 코드: | master • 1.46.0 • 1.45.4 • 1.43.9 |
| 클래스: | NukeNS |
상세
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.
옵션/인수
| Option | Description | Required? |
|---|---|---|
| --delete | Actually delete the pages and their revisions. 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 메뉴얼:이름공간 for a list. | Optional |
| --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. | Optional |
사용법
php maintenance/run.php nukeNS [ --delete| --ns| --all ]
In MediaWiki version 미디어위키 1.39 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.Checking potential deletion
Terminal
$ php maintenance/run.php nukeNS --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/run.php nukeNS --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.