Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to delete the entire folder or directory along with files and folders contained in it. how can I implement in c#?
Posted
Comments
Sergey Alexandrovich Kryukov 24-May-12 2:52am    
On server, on client..?
--SA
Member 8491154 24-May-12 3:00am    
on server

1 solution

Directory.Delete[^]

Hope it helps :)
 
Share this answer
 
Comments
VJ Reddy 24-May-12 3:14am    
My 5!
Mohammad A Rahman 24-May-12 3:32am    
Thank you very much VJ :)
Mohamed Mitwalli 24-May-12 4:27am    
5+
Mohammad A Rahman 24-May-12 6:26am    
Thank you very much Mohamed :)

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