public void DeleteDomain(string domainName) { try { svcDomainAdmin domains = new svcDomainAdmin(); PrepareProxy(domains); GenericResult result = domains.DeleteDomain(AdminUsername, AdminPassword, domainName, true // delete files ); if (!result.Result) throw new Exception(result.Message); } catch (Exception ex) { throw new Exception("Could not delete mail domain", ex); } }