Accidental deletion

Question:I accidentally deleted all of my code and I’m wondering if there’s a way to get it back.

Repl link:

code snippet
1 Like

You can use the keyboard shortcut Ctrl + Z or use the timeline.

3 Likes

Hey @AilaPiatkiewicz and welcome to the community!

To recover a missing file, you can create a file with the same name.
To restore a Repl, you can to to the CLUI and click on restore repl.

2 Likes

I’m pretty sure there is not a way to get it back. Take this advice with a grain of salt as I am only about 88.73% sure, but to the best of my knowledge, no. I’m sorry for the loss of code though :frowning:

1 Like

I literally almost started crying but I got it figured out tysm

1 Like

Trying pressing Ctrl + Z to undo changes. If you’re on mobile you can tap the lightning button and then the undo button.

If you exited the Repl, go to the History tab and move the sliders until it looks right.

If you deleted the file, make a new file with the same name as the deleted one. This should restore it.

Hope this helped :slight_smile:

4 Likes

how can i restore deleted folder

1 Like

If you mean on a Repl, you cannot as far as I know.

1 Like

You can, just create another folder with the exact same name as the folder you deleted, and in the timeline/history it will be there.

1 Like

Oh, I wasn’t aware of this. Thanks for correcting me!

2 Likes

No? You have to both re-make the folder, and then individual files, and then rollback the history on each individual file.

4 Likes

I messed up on folders and files :sweat_smile:
You do have to recreate the folder and each file, thanks!

1 Like