Manual:CleanupUploadStash.php/en

Details
All files created less than the last n seconds ago as defined by $wgUploadStashMaxAge will stay; older files will be deleted.