How can i delete a directory having subdirectory inside it which is not empty.
thanks for the answers
but now when am deleteing any directory at run time so
You could use the Directory.Delete method passing true as second argument.
true
Directory.Delete(@"c:\somedirectory", true);