Manual:$wgUploadMaintenance

Details
To disable file delete/restore temporarily.