폴더를 삭제할 일이 존재하여서 웹을 뒤져보았다. Directory.Delete("path",true); DirectoryInfo di = new DirectoryInfo("Path"); di.Delete(true); foreach (string file in Directory.GetFiles(@"c:\directory\")) File.Delete(file); 삭제를 하는 함수들은 여러가지가 존재했지만, 제대로 작동하는 것이 없었다. 그 원인들을 분석해보니 System.IO.IOException : The directory is not empty 경로를 찾지 못함 권한(?) 문제 읽기 전용 .NET 버전에 따라 함수가 다른 기능을 할 수도 있음 이외 여러가지(?) Exception이 발생해서 해당 폴더를 ..