Solr – Clean up Index


Sometimes you want to delete all the records from the Solr index without deleting the index directory.
This can be done by executing an http url :-



Or by posting data xml data :-

Cleaning data using Solrj :-