Method DeleteIfExists
DeleteIfExists(string)
Deletes the specified file if it exists.
public static void DeleteIfExists(string pathToFile)
Parameters
pathToFilestringPath to file.
Deletes the specified file if it exists.
public static void DeleteIfExists(string pathToFile)
pathToFile stringPath to file.