Recursive delete of files and directories in C#

前端 未结 5 1734
暗喜
暗喜 2020-12-18 20:55

How to delete a given directory recursively in C# ? A directory containing files.

Should the System.IO.Directory.Delete with the second parameter true

5条回答
  •  太阳男子
    2020-12-18 21:19

    Yup, that's the point of that parameter. Did you try it and have any problems? (I've just double-checked, and it works fine for me.)

提交回复
热议问题