Delete a collection
Deleting a Solr collection deletes the collection and its index, but does not delete its configuration files.
- If you are using Kerberos,
kinitas a user with permission to delete the collection:
EXAMPLE.COMwith your Kerberos realm name.
- On a host running Solr Server, make sure that the
SOLR_ZK_ENSEMBLEenvironment variable is set in
/etc/solr/conf/solr-env.sh. For example:
$ cat /etc/solr/conf/solr-env.sh export SOLR_ZK_ENSEMBLE=zk01.example.com:2181,zk02.example.com:2181,zk03.example.com:2181/solr
If you are using Cloudera Manager, this is automatically set on hosts with a Solr Server or Gateway role.
- Delete the collection:
solrctl collection --delete logs