i want to delete all the previously created indices. i am using Lucene.net.
i tried the following:
Term term = new Term(); //empty coz i want to delete all the indices
IndexReader rdr = IndexReader.Open(_directory);
rdr.DeleteDocuments(term);
rdr.Close();
but i get error. any idea how to go about it?