Removing collections/shards/etc in SolrCloud/Zookeeper

7.2k Views Asked by At

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.

1

There are 1 best solutions below

1
On BEST ANSWER

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.