mirror of
https://github.com/certbot/certbot.git
synced 2026-07-24 23:03:42 +02:00
script for clearing out Redis databae
This commit is contained in:
@@ -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