Last active
December 15, 2015 17:09
-
-
Save stuartf/5294408 to your computer and use it in GitHub Desktop.
Wipe all OAE data BE CAREFUL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Delete all cassandra data | |
cassandra-cli << EOF | |
drop keyspace oae; | |
EOF | |
# Delete all redis data | |
redis-cli << EOF | |
flushall | |
EOF | |
# Delete all elasticsearch data | |
curl -XDELETE 'http://localhost:9200/oae' | |
# Delete all rabbitmq data | |
sudo sh -c 'rabbitmqctl stop_app && | |
rabbitmqctl reset && | |
rabbitmqctl start_app' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment