private void DeleteTags(PIServer server) { var tagNames = GeneratePointNames(NameSuffix, NumStart, NumEnd); Logger.Warn("Are you sure you want to delete the PI Points? PRESS 'y' to continue. Any other key to abort."); var input = Console.ReadKey(); if (input.KeyChar == 'y' || input.KeyChar == 'Y') { Logger.Warn("Deleting tags"); var result = server.DeletePIPoints(tagNames); if (result != null && result.HasErrors) result.Errors.ToList().ForEach(e => Logger.Error("Error with: " + e.Key, e.Value)); Logger.Info("operation completed."); return; } Logger.Info("operation aborted."); }