Clear Database of all data

24 views
Skip to first unread message

David Kaminsky

unread,
May 14, 2015, 6:26:32 PM5/14/15
to flapjack...@googlegroups.com
I am looking for a way to clear my flapjack database.  While learning how to use it, I have many entities and checks that are no longer valid.  I would like to just clear everything and start over.  Any ideas of how I can get that done?

David

Lindsay Holmwood

unread,
May 14, 2015, 9:34:02 PM5/14/15
to flapjack...@googlegroups.com
Hey David,
The simplest way to do this is to connect into the Redis instance and
run a FLUSHDB command.

Make sure you're on the right database when you run this command -
Flapjack by default uses database 0 for production, 13 for dev, and 14
for test.

redis-cli will use database 0 by default, so if you just want to clear
your production database you shouldn't need to run a SELECT to change
the database.

Cheers,
Lindsay
--
w: http://fractio.nl/
t: @auxesis

David Kaminsky

unread,
May 14, 2015, 11:48:03 PM5/14/15
to flapjack...@googlegroups.com
Thanks for the reply. That is exactly what I needed.
Reply all
Reply to author
Forward
0 new messages