Method DeleteFile DeleteFile(String) Utility method for deleting files. Declaration protected static void DeleteFile(string path) Parameters Type Name Description String path The file path to delete.