Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 903
CodeChimp Avatar asked Sep 06 '25 13:09

CodeChimp


1 Answers

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.

like image 74
techuser soma Avatar answered Sep 11 '25 02:09

techuser soma