public static void deleteCollectionLevelSnapshot(SolrZkClient zkClient,String collectionName,String commitName) throws InterruptedException, KeeperException {
  String zkPath=getSnapshotMetaDataZkPath(collectionName,Optional.of(commitName));
  zkClient.delete(zkPath,-1,true);
}

public static void deleteCollectionLevelSnapshot ( SolrZkClient zkClient , String collectionName , String commitName ) throws InterruptedException , KeeperException { String zkPath = getSnapshotMetaDataZkPath ( collectionName , Optional . of ( commitName ) ) ; zkClient . delete ( zkPath , - 1 , true ) ; }
this method deletes an entry for the named snapshot for the specified collection in zookeeper .
