1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00
Files
certbot/server-ca/clear-db.py
2012-07-12 16:29:54 -07:00

11 lines
204 B
Python

#!/usr/bin/env python
print "WARNING: Redis database will be cleared!"
raw_input("Press Enter to continue. ")
import redis
r = redis.Redis()
for i in xrange(len(r.keys())):
r.delete(r.randomkey())