I want to delete all the previously created indices. I am using Lucene.net.
Lucene.net
I tried the following:
Term term = new Term
although the thread is old i think it's better to give answer.. might be useful for somebody else. deleteAll() method of IndexWriter can be used to delete all documents indexed.