C#删除文件时间:2023-03-10 07:28:44 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