Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Basics Images, Text and Links Understanding File Paths

I deleted a folder in my workspace. "index.html" ... Is there a way I can get it back?

Deleted it trying to delete a folder I made by accident ):

If it makes you feel any better, I just did the same thing after working on the project for like an hour and a half.

Chinwe Nwadiora
Chinwe Nwadiora
1,832 Points

I also accidentally deleted the index.html file in my workspace after hours of work. There really should be a quicker/easier way to retrieve these files, and they shouldn't be so easy to accidentally delete. Very frustrating.

2 Answers

Jason Anders
Jason Anders
Treehouse Moderator 145,855 Points

Hi there,

Sadly, there is no easy way to get it back. The only way is to go into your Workspaces and delete the entire Workspace for the video/course you are on (only that one!). You then go back to the video and relaunch the Workspace using the link under the Video. This will load a new Workspace with all the original files, but any changes you made will be lost.

Sorry. :pensive:


Kiaya Last Name
Kiaya Last Name
3,129 Points

For anyone else who has this problem just paste the new code in paste bin and copy it over when you create a new workspace