How can i delete a directory having subdirectory inside it which is not empty.
开发者_StackOverflow中文版thanks for the answers
but now when am deleteing any directory at run time so it will take me to the login page.
You could use the Directory.Delete method passing true
as second argument.
Directory.Delete(@"c:\somedirectory", true);
精彩评论