Manual:deleteArchivedFiles.php

MediaWiki version:
1.11


DetailsEdit

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/ArgumentsEdit

Option Description Required?
--delete Does the deletion. Optional
--force Force deletion of rows from filearchive. Optional

UsageEdit

php maintenance/deleteArchivedFiles.php [ --delete| --force ]


Terminal
$ php maintenance/deleteArchivedFiles.php --delete

Searching for and deleting archived files...
Done! [2 file(s)]

See alsoEdit