public UpdateResponse remove(long id) throws IOException, SolrServerException {
  UpdateResponse res=solrClient.deleteById(String.valueOf(id));
  solrClient.commit(false,true,true);
  return res;
}

public UpdateResponse remove ( long id ) throws IOException , SolrServerException { UpdateResponse res = solrClient . deleteById ( String . valueOf ( id ) ) ; solrClient . commit ( false , true , true ) ; return res ; }
deletes a solrdocument with the given id .
