Search code examples
solrapache-zookeepersolrcloud

Removing collections/shards/etc in SolrCloud/Zookeeper


Is there a way to remove a single or even all collections and their various associated settings/shards/etc in Zookeeper/SolrCloud? I would like to start back with a fresh, clean SolrCloud, but I am not seeing any way to clean things up. I tried running zkcli.bat -zkhost localhost:<port> -cmd clear but that didn't seem to do anything.


Solution

  • SolrCloud Collections API proivdes support for this. Did you look at

    https://cwiki.apache.org/confluence/display/solr/Collections+API

    Solrcloud delete collection bug?

    You can use solrctl tool if you are working with CDH Solr.