Manual:deleteBatch.php
From MediaWiki.org
| MediaWiki File: deleteBatch.php | |
|---|---|
| Location: | maintenance/ |
| Source code: | |
| Classes: | None |
deleteBatch.php is a maintenance script located in the maintenance directory that can be used to delete a batch of pages.
Usage [edit]
php deleteBatch.php somepages.txt
(This will delete the pages contained in the text file "somepages.txt")
On a wiki farm with linked folders, change to folder containing LocalSettings.php and use:
php ./maintenance/deleteBatch.php --conf ./LocalSettings.php -r "reason for deletion" ./deleteBatch.txt
| Option/Parameter | Description |
|---|---|
| -u <user> | Username that will be shown in the log entries. If left empty, deletions will be attributed to the user called Delete page script. |
| -r <reason> | Reason for deletions. If empty, no reason will be shown in the logs. |
| -i <interval> | Number of seconds to sleep after each deletion. |
| <listfile> | A file (located in the maintenance directory) where each line contains the title of a page to be deleted. |
See also [edit]
- Extension:DeleteBatch — special page extension of this maintenance script.
| Language: | English • polski • русский |
|---|