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! While you're at it, check out some resources Treehouse students have shared here.

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

PHP Build a Basic PHP Website (2018) Building a Media Library in PHP Setting Up the Project

What can I do if I deleted a file in the Workspace by accident?

I deleted a file in the Workspace I was working on. Can I get it back?

Abraham Juliot
Abraham Juliot
47,353 Points

I dont think you can retrieve deleted files, but this is great reason to push your work and changes to it to github. I personally use c9.io for my workspaces and I store my projects to github.

1 Answer

You can get back the original file without the changes you made to it by downloading the project files to your computer and unzipping them. Now, from in workspaces right click in the sidebar area and choose upload file and then select the missing file from where you downloaded it onto your computer. Unfortunately, you won't have the changes you made to that file, but it at least gets you the base file back.