string file =System.Web.HttpContext.Current.Server.MapPath(fileUrl); if (System.IO.File.Exists(file))//判断文件是否存在
{ System.IO.File.Delete(file); }
查找自:https://zhidao.baidu.com/question/123004173.html
原文:http://www.cnblogs.com/dzw159/p/6203596.html