2

I have created directory and its subdirectory and files... I have to delete them entirely. Is there any possible ways.How can i achieve this

0

3 Answers 3

4
Directory.Delete("the dir", true); 

http://msdn.microsoft.com/en-us/library/fxeahc5f.aspx

Sign up to request clarification or add additional context in comments.

Comments

1
Directory.Delete(path, true); 

http://msdn.microsoft.com/en-us/library/fxeahc5f.aspx

1 Comment

You are missing a comma between the parameters.
0

I guess,

Directory.Delete(path, true /* recursive */); 

will do the job.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.