You can use a loop:
string[] filePaths = Directory.GetFiles(@"c:\MyDir\");
foreach (string filePath in filePaths)
{
File.Delete(filePath);
}
You can use Array.ForEach with an anonymous method:
Array.ForEach(Directory.GetFiles(@"c:\MyDir\"), delegate(string path) { File.Delete(path); });
Or you could use
Directory.Delete(path, true);
Directory.CreateDirectory(path);
to remove the folder, it's contents, and all subdirectories, then re-create the folder.