Manual:DeleteArchivedFiles.php

MediaWiki version:
1.11
Category:MediaWiki code#DeleteArchivedFiles.php

Details

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

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

Usage

php maintenance/run.php deleteArchivedFiles [ --delete| --force ]
Terminal
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

See also

Category:Maintenance scripts#DeleteArchivedFiles.php Category:File maintenance scripts
Category:File maintenance scripts Category:Maintenance scripts Category:MediaWiki code