summaryrefslogtreecommitdiff
path: root/couchdb_delete_all_dbs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'couchdb_delete_all_dbs.sh')
-rwxr-xr-xcouchdb_delete_all_dbs.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/couchdb_delete_all_dbs.sh b/couchdb_delete_all_dbs.sh
new file mode 100755
index 0000000..07b7413
--- /dev/null
+++ b/couchdb_delete_all_dbs.sh
@@ -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