Manual:DeleteArchivedFiles.php
Outdated translations are marked like this.
Versión de MediaWiki: | ≥ 1.11 |
Archivo de MediaWiki: deleteArchivedFiles.php | |
---|---|
Ubicación: | maintenance/ |
Código fuente: | master • 1.43.0 • 1.42.5 • 1.39.11 |
Clases: | DeleteArchivedFiles |
Detalles
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
Opción/parámetro | Descripción | Required? |
---|---|---|
--delete | Hace el borrado. | Optional |
--force | Force deletion of rows from filearchive table. |
Optional |
Uso
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.11 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.
Véase también
- Manual:DeleteArchivedFiles.inc
- Manual:EraseArchivedFile.php - if you do not want to delete all, but only selected, archived files.