$ ${SOLR_ROOT}/bin/solr delete -c collection6 -deleteConfig false -p 8983
Here's the output of running this command on my localhost where I have 2 Solr instances and 1 ZooKeeper instance.
{
"responseHeader": {
"status": 0,
"QTime": 220
},
"success": {
"192.168.2.33:8983_solr": {
"responseHeader": {
"status": 0,
"QTime": 40
}
},
"192.168.2.33:8984_solr": {
"responseHeader": {
"status": 0,
"QTime": 51
}
}
}
}
Deleted collection 'collection6' using command:
http://192.168.2.33:8983/solr/admin/collections?action=DELETE&name=collection6
Notes:
-
The collection will be deleted from ZooKeeper.
-
For all the Solr alive instances, the collection folders (replicas) on the file system will be deleted.
-
If you set the "
deleteConfig
" option to "true
" (default), the Solr config will be deleted from ZooKeeper.