DIH is not basically for deletion it is for inserting data into index. Although it has a parameter "clean" which is by default true and it cleans the index every time when full-import command is issued, means it create index from scratch.
If your requirement is to delete whole index you can also use: http://localhost:8080/solr/update?stream.body=<delete><query>*:*</query></delete> http://localhost:8080/solr/update?stream.body=<commit/> If your requirement is to delete data from index selectively, change the above query accordingly: http://localhost:8080/solr/update?stream.body=<delete><query>adId:1002</query></delete> http://localhost:8080/solr/update?stream.body=<commit/> -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-delete-documents-from-SOLR-index-using-DIH-tp1323794p1346743.html Sent from the Solr - User mailing list archive at Nabble.com.