mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
script for clearing out Redis databae
This commit is contained in:
10
server-ca/clear-db.py
Normal file
10
server-ca/clear-db.py
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/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())
|
||||
Reference in New Issue
Block a user