private void DoWork() { var name = Alias.Name; var Context = Alias.Context; if (!Quiet && !Util.WarnConfirm($"The {nameof(X509Alias)} {name.InQuotes()} will be removed from the {Context.Name.InQuotes()} {nameof(X509Context)}. Any secrets contained in this {nameof(X509Alias)} will be unrecoverable.", Constants.Affirm)) { return; } Alias.Remove(DeleteCert); Alias.Dispose(); Console.WriteLine($"Alias {name.InQuotes()} has been removed from the {Context.Name.InQuotes()} {nameof(X509Context)}"); Result = true; }