Delete Files from a Folder using C#

Bhanubysani
Posted by Bhanubysani under C# category on | Points: 40 | Views : 1099
To Delete a files from a particular folder we can use lambda expression with out for loop.


 Array.ForEach(Directory.GetFiles(path), File.Delete);

Comments or Responses

Login to post response