i've created several indices in solr : test1, test2,test3...
now want completely remove them
the following remove data inside of index test1 not delete index index still showing in solr admin . (inspired here )
curl http://index.websolr.com/solr/test1/update?commit=true -h "content-type: text/xml" --data-binary '<delete><query>*:*</query></delete>' i'm hoping approach not hands dirty removing directories manually , restarting solr (thus potentially avoiding damage solr).
is there anyway?
you can try
http://localhost:8983/solr/admin/cores?action=unload&core=test1 the unload action removes core solr.
so requirement can try
http://localhost:8983/solr/admin/cores?action=unload&core=test1&deleteindex=true&deletedatadir=true here deletedatadir looking - if deletedatadir true, removes data directory , sub-directories.
or
http://localhost:8983/solr/admin/cores?action=unload&core=test1&deleteinstancedir=true for other param please check following link.
Comments
Post a Comment