Add method Compat::deleteFile.