Manual:EraseArchivedFile.php/pl

Wersja MediaWiki:
1.22
Category:MediaWiki code/pl#EraseArchivedFile.php

Szczegóły

eraseArchivedFile.php file is a maintenance script to delete the archived file provided by --filekey from the filesystem.

When the script is run with --filekey or with --filename, it will purge the thumbnails of the according image - even, if --delete has not been specified. That way you can use the script to force a re-rendering of the thumbnails without having to re-upload the image. Information about deleted files is stored in the filearchive table.

Options/Arguments

Opcja/Parametr Opis Required?
--filekeyFile 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. Wymagane
--filenameFile name (corresponds to the value of fa_name in the filearchive table). Optional
--deletePerform 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 messages of the upload/deletion of the now-deleted file). Optional

Użycie

php maintenance/run.php eraseArchivedFile --filekey fa_storage_key [ --filename| --delete ]
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.

Dry run to check deletion

Terminal

Making deletion action

Terminal

Zobacz też

Category:Maintenance scripts/pl#EraseArchivedFile.php Category:File maintenance scripts/pl
Category:File maintenance scripts/pl Category:Maintenance scripts/pl Category:MediaWiki code/pl