Try using HTTP POST to send your <delete>…</delete> command in the body instead of using stream.body. E.g. using the cURL utility:
curl -XPOST http://localhost:8983/solr/TakTech/update?commit=true -d '<delete><query>*:*</query></delete>' Or go to Admin UI, find your collection, select «Documents» sub meny, change the dropdown from JSON to XML, paste the same XML command into the box and click the blue button :) Jan > 14. feb. 2020 kl. 08:27 skrev Nitish Kumar <nnitishku...@firstam.com>: > > Hi , > I am working on SOLR upgrade from my current version to SOLR 8.4.1 version > and I am unable to delete indexed data from solr collection . > I have tried this URL > http://localhost:8983/solr/TakTech/update?stream.body=<delete><query>*:*</query></delete>&commit=true<http://localhost:8983/solr/TakTech/update?stream.body=%3cdelete%3e%3cquery%3e*:*%3c/query%3e%3c/delete%3e&commit=true> > and I am getting response like this > { "error":{ > "metadata":[ > "error-class","org.apache.solr.common.SolrException", > "root-error-class","org.apache.solr.common.SolrException"], > "msg":"Stream Body is disabled. See > http://lucene.apache.org/solr/guide/requestdispatcher-in-solrconfig.html for > help", > "code":400}} > > I wanted to know ,how can I delete data from my collection is there any > configuration issue ? > > Thanks & Regards > N Kumar > > > ****************************************************************************************** > This message may contain confidential or proprietary information intended > only for the use of the > addressee(s) named above or may contain information that is legally > privileged. If you are > not the intended addressee, or the person responsible for delivering it to > the intended addressee, > you are hereby notified that reading, disseminating, distributing or copying > this message is strictly > prohibited. If you have received this message by mistake, please immediately > notify us by > replying to the message and delete the original message and any copies > immediately thereafter. > > If you received this email as a commercial message and would like to opt out > of future commercial > messages, please let us know and we will remove you from our distribution > list. > > Thank you.~ > ****************************************************************************************** > FAFLD