Manual:$wgUploadMaintenance

Details
To disable file delete/restore temporarily. This does not prevent users from uploading files. See 