SyntaxFix
Write A Post
Hire A Developer
Questions
You can do something like:
Directory directory = new DirectoryInfo(path); List<FileInfo> fileInfos = directory.EnumerateFiles("*.*", SearchOption.AllDirectories).ToList(); foreach (FileInfo f in fileInfos) File.Delete(f.FullName);