How do i delete all key-value pairs in replDB?
I'm using Python, and I need to clear the replit database, so i decided to get all the keys and delete them one by one, but i get some error
def clear_keys(): keys = db.keys() for i in keys: del db[keys[i]] clear_keys()
Error - File "main.py", line 11, in clear_keys del db[keys[i]]
Is there an easier way or am I doing something wrong?
Answered by MrVoo (96) [earned 5 cycles]