Hi,
have you seen the purgeAll method?
http://www.hibernate.org/hib_docs/search/reference/en/html_single/#d0e2316
Quote:
I don't want to remove from index one by one object, I believe there is simpler method
You could delete the index files programmatically; but it would be preferrable to stop Hibernate Search before doing so; also you have to restart it to have new indexes created.
In alternative you could delete the files and then write a new empty index using the Lucene api (see IndexWriter), but you should interact with the Hibernate Search locking system to be safe.
I'm not sure what could happen if you replace the index without using the locks, I could look at it if you can't stop the system.
regards,