private String makeDeleteAllUrl() throws UnsupportedEncodingException {
  HttpSolrServer solrServer=(HttpSolrServer)getSolrServer();
  String deleteQuery="<delete><query>*:*</query></delete>";
  return solrServer.getBaseURL() + "/update?commit=true&stream.body=" + URLEncoder.encode(deleteQuery,"UTF-8");
}

private String makeDeleteAllUrl ( ) throws UnsupportedEncodingException { HttpSolrServer solrServer = ( HttpSolrServer ) getSolrServer ( ) ; String deleteQuery = "<delete><query>*:*</query></delete>" ; return solrServer . getBaseURL ( ) + "/update?commit=true&stream.body=" + URLEncoder . encode ( deleteQuery , "UTF-8" ) ; }
compose a url that if you get it , it will delete all the data .
