Manual:deleteArchivedFiles.php
Appearance
MediaWiki version: | ≥ 1.11 |
MediaWiki file: deleteArchivedFiles.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.4 • 1.41.5 • 1.39.11 |
Classes: | DeleteArchivedFiles |
Details
[edit]deleteArchivedFiles.php file is a maintenance script to delete all archived files. Information about these files is stored in the filearchive table. This script allows to delete the actual files from the filesystem - if used without --force, it does however keep the entries in the aforementioned table.
Options/Arguments
[edit]Option | Description | Required? |
---|---|---|
--delete | Does the deletion. | Optional |
--force | Force deletion of rows from filearchive table. |
Optional |
Usage
[edit]php maintenance/run.php deleteArchivedFiles [ --delete| --force ]
Terminal
$ php maintenance/run.php deleteArchivedFiles --delete Searching for and deleting archived files... Done! [2 file(s)]
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.See also
[edit]- Manual:DeleteArchivedFiles.inc
- Manual:EraseArchivedFile.php - if you do not want to delete all, but only selected, archived files.