static void DeleteModel(NetworkModel model) { Console.WriteLine("Deleting model..."); if (File.Exists(model.Path("graph"))) { File.Delete(model.Path("graph")); } model.Delete(); Console.WriteLine("Model has been deleted."); }