Search This Blog

2009-10-01

Delete all files from a folder

using Syste.IO;

Array.ForEach(Directory.GetFiles(Server.MapPath("..\\StudentImages\\")),
delegate(string path) { File.Delete(path); });


NB.Only change the blue color portion

No comments: