Check out example codes for "C# how to remove an image in a folder". It will help you in understanding the concepts better.

Code Example 1

var filePath = Server.MapPath("~/Images/" + filename);
if(File.Exists(filePath))
{
    File.Delete(filePath);
}

Learn ReactJs, React Native from akashmittal.com