Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i delete a folder having Xml file in asp.net

any one provide the exact code
Posted

1 solution

System.IO.Directory.Delete("myfolder", true)

is probably it. It is utterly irrelevant what type of file is in the folder, the Directory.Delete has an overload to delete files inside it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900