Check out example codes for "c# how to delete a file". It will help you in understanding the concepts better.

Code Example 1

File.Delete(@"C:\Temp\Data\Authors.txt");

Learn ReactJs, React Native from akashmittal.com