You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by Johannes Goll <jo...@gmail.com> on 2010/03/22 18:36:11 UTC

solr delete core index files

Hi,

to delete a solr core index, I do
(1) curl "host/solr/admin/cores?action=UNLOAD&core=FOO"
(2) rm -rf /abs_path_to_foo/FOO

Is there a way to avoid step 2 and tell the solr server directly to
delete the index files
upon UNLOAD ?

Thanks,
Johannes

Re: solr delete core index files

Posted by Erick Erickson <er...@gmail.com>.
Two things:

1> you can create a delete query matching all your documents like the query
"*:*"

2> This kind of question is better suited to the solr user list, this list
is devoted to internal SOLR development...

Best
Erick

On Mon, Mar 22, 2010 at 1:36 PM, Johannes Goll <jo...@gmail.com>wrote:

> Hi,
>
> to delete a solr core index, I do
> (1) curl "host/solr/admin/cores?action=UNLOAD&core=FOO"
> (2) rm -rf /abs_path_to_foo/FOO
>
> Is there a way to avoid step 2 and tell the solr server directly to
> delete the index files
> upon UNLOAD ?
>
> Thanks,
> Johannes
>