I want to delete the entire folder or directory along with files and folders contained in it. How can I implement in C#?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Since it is tagges c# I assume the directory is at server side.Refer this link
How to delete all files and folders in a directory?
Try using
Check manual
The true parameter in the Delete method is Recursive = true. This tells the method to delete the current folder and everything inside it. Files and folders.