Check out example codes for "delete all dir content c#". It will help you in understanding the concepts better.

Code Example 1

new System.IO.DirectoryInfo(@"C:\Temp").Delete(true);

 //Or

 System.IO.Directory.Delete(@"C:\Temp", true);

Learn ReactJs, React Native from akashmittal.com