Remove vestigal Solr 4 binaries and configuration. Remove zookeeper configuration...
[lui-solr.git] / scripts / delete_solr.sh
diff --git a/scripts/delete_solr.sh b/scripts/delete_solr.sh
deleted file mode 100755 (executable)
index 6c51408..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-HOST_PORT="localhost:8080"
-
-if [ "$2" != "" ] ; then 
-    HOST_PORT="$2"
-fi 
-
-SOLR_PATH=solr4
-if [ "$3" != "" ] ; then 
-    SOLR_PATH="$3"
-fi
-
-if [ "$1" == "" ] ; then 
-    echo "$0 databaseid [[HOST:PORT] PATH] (default $HOST_PORT/$PATH)"
-    exit 1 ; 
-fi  
-
-curl http://${HOST_PORT}/$SOLR_PATH/update -H "Content-Type: text/xml" --data-binary "<delete><query>database:$1</query></delete>"
-curl http://${HOST_PORT}/$SOLR_PATH/update -H "Content-Type: text/xml" --data-binary '<commit waitFlush="false" waitSearcher="false"/>'