X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=delete_solr.sh;fp=delete_solr.sh;h=8a586ae1ecab6a26829d17cfe5a0272e3d81b7ac;hb=cc818b5486321d771aaa214a27f428c66e6d0438;hp=0000000000000000000000000000000000000000;hpb=e79b12624edd4b82c95aa64a8342778b22ce6c99;p=lui-solr.git
diff --git a/delete_solr.sh b/delete_solr.sh
new file mode 100755
index 0000000..8a586ae
--- /dev/null
+++ b/delete_solr.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+if [ "$1" == "" ] ; then
+ echo "No database id given"
+ exit 1 ;
+fi
+HOST=localhost
+PORT=8080
+curl http://$HOST:$PORT/solr/update -H "Content-Type: text/xml" --data-binary "database:$1"
+curl http://$HOST:$PORT/solr/update -H "Content-Type: text/xml" --data-binary ''
\ No newline at end of file