C# 删除文件

        public static void DeleteFile(string fileUrl)
        {
            string file = System.Web.HttpContext.Current.Server.MapPath(fileUrl);
            if (System.IO.File.Exists(file))
            {
                System.IO.File.Delete(file);
            }
        }
原文地址:https://www.cnblogs.com/duhaoran/p/13821988.html