How about:
delete by query *:* + optimize + unload

I believe unloading the code will update solr.xml if it has that persist 
setting in it (but haven't tried it).
This will leave all the other config and other files and dirs behind, though...

Oits
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: vivek sar <vivex...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Wednesday, May 6, 2009 2:25:50 PM
> Subject: Delete complete core without stopping Solr
> 
> Hi,
> 
>   I'm using multi-core feature of Solr. Each Solr instance maintains
> multiple-core - each core of size 100G. I would like to delete older
> cores directory completely after 2 weeks (using file.delete).
> Currently, Solr loads all the cores that are listed in solr.xml. I was
> thinking of following,
> 
> 1) Call unload service to unload the core from Solr  - would this
> remove the entry from solr.xml as well?
> 2) Delete the core directory
> 
> Would this work? I'm hoping I don't have to restart or do any
> individual document deletes.
> 
> Thanks,
> -vivek

Reply via email to