I am using solr 4.9, not adding any additional shard, just use whatever default it comes with it. I have created a collection and tried to delete it by using the following api :
http://<host>/solr/admin/collections?action=DELETE&name=collectionName
but it returns error :
Solr instance is not running in SolrCloud mode
My Solr is not solrCloud, but how do I delete my collection?
A collection is a single logical index that uses a single Solr configuration file ( solrconfig. xml ) and a single index schema.
Standard Aliases Alternatively this information is available by checking /aliases. json in ZooKeeper with either the native ZooKeeper client or in the tree page of the cloud menu in the admin UI. Aliases may be deleted via the DELETEALIAS command. When deleting an alias, underlying collections are unaffected.
Configsets are a set of configuration files used in a Solr installation: solrconfig. xml , the schema, and then resources like language files, synonyms. txt , DIH-related configuration, and others that are referenced from the config or schema.
Go to the solr folder and Do this..
bin/solr delete -c collection_name
and restart solr with
bin/solr restart
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With