I am trying to delete the folder containing the files (in my case png)

Directory.Delete("Pictures"); 

An exception is raised that reports that the folder is not empty and cannot be deleted. How can I get rid of this directory without having to delete all the files it contains?

    1 answer 1

    https://msdn.microsoft.com/en-us/library/fxeahc5f(v=vs.110).aspx

     Directory.Delete("Pictures", true);