iterate overr redis keys and delete code example Example: iterate overr redis keys and delete for key in r.scan_iter("prefix:*"): r.delete(key)