Skip to content
← Back to Community
I accidentally deleted some files in the repl, how can I return them!?
Profile icon
AntonRew

I was working at the repl and accidentally deleted files. Have they been deleted forever or can I return them?

Comments
hotnewtop
Profile icon
BenNguyen2

For all of you who says: "Just go to replit restore", it doesn't work like that. When it deletes the file, it deletes the entire file even on the repls history so you can't select the file to make restorations on. This includes removing the entire document and still you won't be able to get it back somehow.

Profile icon
RYANTADIPARTHI

repl history

There is no problem in that. Just click repl history, and choose the timing you made it. It will restore the code back.

Screenshot 2020-11-30 at 9.27.39 AM

Click that and restore it. No worries
That should work

Profile icon
Coder100

no worries!

1. Create the file

Just create the file again, in that exact folder and file

2. Click the history button

image
Click that and navigate to your file in question, and you will see there is history!

Profile icon
ChickenNuggg

thanks! this was one of the only replies that I found that worked! @Coder100

Profile icon
Coder100
Profile icon
PattanAhmed

@AntonRew Hi,
If you mean you deleted files from your Repl.
Getting them back is easy.
Just go to your Repl History, you will find your file there under the date it was changed:-
01

If you mean your Repl was deleted, then also you can get it back from your Repl.it Trash
Go to https://repl.it/~/cli and it will guide you from there.

That's it
Thanks!

Hope this helps!

Profile icon
JasonLiu19

You can create new files with the same name and go to version history. Then, you change files into the one you deleted, then restore.

37944e1f7a6413f3b6caf60021213490
f21565f010f4200f7fdabe6cb66d90b2
ca3c3330b01cff220ff2e97a59090b28
a1e1d46c3569520bbe34f8a4d914194c
984f9e9806cb7d572a02b8ef86471af4
ffba26064b3e200a5edd3502aa8e185b
2bbc7de3a70f89695cdbd870d5bc44af
2dfd96fc79763de7249739467985671a
4f675e5b25a069277ab2249b9eacfe25
458323df67fe237fa0cab43fc8708f8e
486445d62eb8070d7419ac41cd1cae51
got this from Coder100 btw

Profile icon
Joj822

@JasonLiu19
thank u this really helped.