public static void DeleteAlias(string domainName, string aliasNameForDelete) { XMLayer xm = new XMLayer(); try { xm = XMServer.CreateXMLayer(); xm.Login(); xm.DeleteAlias(domainName, aliasNameForDelete); xm.Logout(); } catch (Exception error) { Log.WriteException(error); throw; } }