Other Clients
Solr Delete Post for Shells
Tue, 03/23/2010 - 14:18 | admin
This script is used to delete entries from a solr installation. In this case the delete query is 'url:http*' which is and record which contains http* in the url field. Be sure to change this portion of the code to fit your needs.
#!/bin/sh
URL=http://localhost:8080/solr/update
echo "deleting all entries:";
curl $URL --data-binary '
curl $URL --data-binary '
curl $URL --data-binary '