### Question:
ZkRing extends AbstractRing { public void delete() throws IOException { try { zk.deleteNodeRecursively(ringPath); } catch (Exception e) { throw new IOException(e); } } ZkRing(ZooKeeperPlus zk,
                final String ringPath,
                RingGroup ringGroup,
                final Coordinator coordinator,
                final DataLocationChangeListener dataLocationChangeListener); static ZkRing create(ZooKeeperPlus zk,
                              Coordinator coordinator,
                              String ringGroup,
                              int ringNum,
                              RingGroup group,
                              DataLocationChangeListener dataLocationChangeListener); @Override Set<Host> getHosts(); @Override Host getHostByAddress(PartitionServerAddress address); @Override Host addHost(PartitionServerAddress address,
                      List<String> flags); @Override boolean removeHost(PartitionServerAddress address); void close(); void delete();  }### Answer:
@Test public void testDelete() throws Exception { ZkRing ring = ZkRing.create(getZk(), coordinator, ZkPath.append(getRoot(), "ring-group-one"), 1, null, null); ring.delete(); assertTrue(getZk().exists(ZkPath.append(getRoot(), "ring-group-one/ring-1"), null) == null); }