From b7751ef0080012b060ce3e0f9e887fb799a65611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Cantu=C3=A1ria?= Date: Wed, 25 Nov 2020 14:40:24 -0300 Subject: [PATCH] Adiciona delete-collection.sh --- solr/bin/delete-collection.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 solr/bin/delete-collection.sh diff --git a/solr/bin/delete-collection.sh b/solr/bin/delete-collection.sh new file mode 100644 index 000000000..9e4fb466e --- /dev/null +++ b/solr/bin/delete-collection.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +SOLR_URL=${SOLR_URL-'http://localhost:8983/solr'} +SOLR_COLLECTION=${SOLR_COLLECTION-'sapl'} + +curl -X POST "$SOLR_URL/admin/collections?action=DELETE&name=$SOLR_COLLECTION" \ No newline at end of file