public void removeSite(Site site){
  coordinator.removeServiceConfiguration(site.toConfiguration());
  coordinator.deletePath(getSitePath(site.getUuid()));
  ConfigurationImpl sitePropsCfg=new ConfigurationImpl();
  sitePropsCfg.setId(site.getUuid());
  sitePropsCfg.setKind(PropertyInfoExt.TARGET_PROPERTY);
  coordinator.removeServiceConfiguration(sitePropsCfg);
  log.info("Removed site {} configuration from ZK",site.getUuid());
}

public void removeSite ( Site site ) { coordinator . removeServiceConfiguration ( site . toConfiguration ( ) ) ; coordinator . deletePath ( getSitePath ( site . getUuid ( ) ) ) ; ConfigurationImpl sitePropsCfg = new ConfigurationImpl ( ) ; sitePropsCfg . setId ( site . getUuid ( ) ) ; sitePropsCfg . setKind ( PropertyInfoExt . TARGET_PROPERTY ) ; coordinator . removeServiceConfiguration ( sitePropsCfg ) ; log . info ( "Removed site {} configuration from ZK" , site . getUuid ( ) ) ; }
will remove 3 znodes : 1 . / config / disasterrecoverysites / $ { vdc_shortid } / $ { uuid } node 2 . / sites / $ { uuid } node 3 . / config / upgradetargetpropertyoverride / $ { uuid } node
