How can i clear a database

i know there is a command or a way to do it i just dont know how i was wondering if there is any way i can run a command in the console or shell to whipe my database if anyone could help that i would verry much aprcaite it

Which database and which language?

1 Like

Hii @aydenbg You can use this command

curl -XDELETE $REPLIT_DB_URL/<key>

And find documentation on this link Click Here

Let me know if it worked

1 Like

i heard of that but it has many keys and i just want to reset it all like fully whipe it and i dont know the name of the keys

Currently we can delete only in this way.

If you want to delete all data base and keep code then I will suggest you download code in zip from replit then delete current repl and create new then copy your code back you will have clean database and code back in repo.

1 Like

oh i i was hoping it was posible to do that

1 Like

It would be helpful if you said what language you are working in and what database. If it’s js and ReplDB you can do db.empty()

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.