title: Solr delete Index using cURL
body: <p>I'm trying to delete all records from Solr.  I can do this in the browser by posting the following URL</p>
  
  <pre><code>http://localhost:8983/solr/update?stream.body=&lt;delete&gt;&lt;query&gt;*:*&lt;/query&gt;&lt;/delete&gt;
  </code></pre>
  
  <p>However I wish to do it using the commmand line.  I've installed cURL and have tested that the command line understands curl commands.  But when I issue the following command</p>
  
  <pre><code>curl http://localhost:8983/solr/update --data '&lt;delete&gt;&lt;query&gt;*:*&lt;/query&gt;&lt;/delete&gt;' -H 'Content-type:text/xml; charset=utf-8' 
  </code></pre>
  
  <p>I receive the error </p>
  
  <blockquote>
    <p>&lt; was unexpected at this time</p>
  </blockquote>
  
  <p>I have tried various different variations using single or double quotes to wrap the xml in, but nothing seems to work.  Can anybody shed any light?</p>
  
  <p>Thanks in advance.</p>