SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
foreach (string file in Directory.GetFiles(@"c:\directory\")) File.Delete(file);