Search This Blog

Wednesday, September 10, 2014

Delete directory C#

C# > Files > Directory > Delete

Deletes the specified directory.

Example

Deletes the specified directory and any subdirectories and 

files in the directory.


System.IO.Directory.Delete(@"c:\Temp\", true);