删除指定路径文件夹下所有文件 .net
string filePath = Server.MapPath("~/ImportBaseInfo/");
string[] filePaths = Directory.GetFiles(filePath);
foreach (string filepath in filePaths)
{ File.Delete(filepath); }
灵感来自大佬:https://www.cnblogs.com/hongkun/p/7993619.html