Manual:CleanupUploadStash.php

Details
The cleanupUploadStash.php script removes old or broken uploads from the temporary file storage and cleans up associated database records from the table table>Special:MyLanguage/Manual:Uploadstash table|uploadstash. This script can be used to clean up abandoned files in the temporary file stash.

All files created less than the last n seconds ago as defined by maxage>Special:MyLanguage/Manual:$wgUploadStashMaxAge|$wgUploadStashMaxAge will stay; older files will be deleted.