delete a directory having subdirectory (not empty)

前端 未结 1 748
故里飘歌
故里飘歌 2021-01-18 01:17

How can i delete a directory having subdirectory inside it which is not empty.

thanks for the answers

but now when am deleteing any directory at run time so

相关标签:
1条回答
  • 2021-01-18 01:44

    You could use the Directory.Delete method passing true as second argument.

    Directory.Delete(@"c:\somedirectory", true);
    
    0 讨论(0)
提交回复
热议问题