conf.setInt(HConstants.ZOOKEEPER_CLIENT_PORT, uri.getZookeeperClientPort());
LOG.info(String.format("Removing the kiji instance '%s'.", uri.getInstance()));
final ProtocolVersion systemVersion = getSystemVersion(uri, conf, htableFactory);
if (systemVersion.compareTo(Versions.SYSTEM_2_0) < 0) {
uninstallSystem_1_0(uri, conf, adminFactory);
} else if (systemVersion.compareTo(Versions.SYSTEM_2_0) == 0) {
uninstallSystem_2_0(uri, conf, adminFactory);
} else {
throw new InternalKijiError(String.format("Unknown System version %s.", systemVersion));