Manual:EraseArchivedFile.php

From MediaWiki.org
Jump to: navigation, search

Other languages:
English

Details[edit | edit source]

eraseArchivedFile.php file is a maintenance script to delete the archived file provided by --filekey from the filesystem. Information about these files is stored in the filearchive table.

Usage[edit | edit source]

Option/Parameter Description
--filekey Required. File storage key (with extension) for a specific version to be deleted or "*" for all versions (in that case, --filename is required). The file storage key is an entry from the fa_storage_key column of the filearchive table.
--filename File name (corresponds to the value of fa_name in the filearchive table).
--delete Perform the deletion. Will delete the archived file and possible thumbnails, but will not delete its entry in the filearchive table (nor will it delete log message of the upload/deletion of the now-deleted file).

External links[edit | edit source]