If you want to Delete all documents from solr, follow any one of the step given below.
There are 2 ways to do this.
1. http://localhost:8983/solr/update?stream.body=<delete><query>*:*</query></delete>&commit=true
2. Curl request:
curl -H 'Content-Type: text/xml' http://localhost:8983/solr/update --data-binary '<delete><query>*:*</query></delete>'
For curl request make sure you use commit=true.
0 Comment(s)