Podręcznik:DeleteArchivedFiles.php
Appearance
| Wersja MediaWiki: | ≥ 1.11 |
| Plik MediaWiki: deleteArchivedFiles.php | |
|---|---|
| Lokalizacja: | maintenance/ |
| Kod źródłowy: | master • 1.46.0 • 1.45.4 • 1.43.9 |
| Klasy: | DeleteArchivedFiles |
Szczegóły
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.
Opcje/argumenty
| Opcja | Opis | Wymagany? |
|---|---|---|
| --delete | Does the deletion. | Optional |
| --force | Force deletion of rows from filearchive table. |
Optional |
Użycie
php maintenance/run.php deleteArchivedFiles [ --delete| --force ]
Terminal
$ php maintenance/run.php deleteArchivedFiles --delete Searching for and deleting archived files... Done! [2 file(s)]
W wersji MediaWiki MediaWiki 1.39 i we wcześniejszych musisz wywoływać skrypty konserwacyjne poprzez
php maintenance/nazwaSkryptu.php zamiast php maintenance/run.php nazwaSkryptu.
Zobacz też
- Podręcznik:DeleteArchivedFiles.inc
- Podręcznik:EraseArchivedFile.php - if you do not want to delete all, but only selected, archived files.