How to delete files ,subdirectory entirely to specified path
I have created directory and its subdirectory and fi开发者_如何学Cles... I have to delete them entirely. Is there any possible ways.How can i achieve this
Directory.Delete("the dir", true);
http://msdn.microsoft.com/en-us/library/fxeahc5f.aspx
Directory.Delete(path, true);
http://msdn.microsoft.com/en-us/library/fxeahc5f.aspx
I guess,
Directory.Delete(path, true /* recursive */);
will do the job.
精彩评论