added couchdb_delete_all_dbs.sh
authorvarac <varacanero@zeromail.org>
Fri, 30 Aug 2013 06:56:52 +0000 (06:56 +0000)
committervarac <varacanero@zeromail.org>
Fri, 30 Aug 2013 06:56:52 +0000 (06:56 +0000)
couchdb_delete_all_dbs.sh [new file with mode: 0755]

diff --git a/couchdb_delete_all_dbs.sh b/couchdb_delete_all_dbs.sh
new file mode 100755 (executable)
index 0000000..07b7413
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+. couchdb-scripts-defaults.conf
+. couchdb_functions
+
+
+dbs="`get_dbs $URL`"
+#dbs='tickets'  # for debugging
+
+for db in $dbs
+do
+  $CURL -X DELETE "${URL}/${db}"
+done