CSharp examples for File IO:Directory
delete a directory
using static System.Console; using static System.IO.Directory; using static System.IO.Path; using static System.Environment; class Program/*from ww w . j a va2s. c om*/ { static void Main(string[] args) { string dir = "aDir"; WriteLine("Deleting it..."); Delete(dir, recursive: true); WriteLine($"Does it exist? {Exists(dir)}"); } }