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 trialMeg Cusack
11,448 PointsHow to get workspace back to its original code?
I am reviewing the JavaScript Treehouse learning that I did months ago.
For the challenges, when I open the workspace, it already has the correct code in it that I did months ago (it remembers my code from months ago).
I want the workspace challenge to show the code with errors that Treehouse was having us correct. How do I get it to show that code (I would rather not remove all past cookies for every site I've ever been on).
4 Answers
Steven Parker
231,236 PointsYou can restart the workspace. First, go to the Workspaces page and locate the one you are using. Click on the trashcan icon on the right side to delete the workspace, and confirm when you get the pop-up.
With the workspace deleted, you can go back to the course and "Launch Workspace" again. When it comes up, it should have all the files you started with in their initial states.
Meg Cusack
11,448 PointsI found the trash icon. So strange- I couldn't get to it from the workspace itself. The three icons at the top right (I tried it in 3 browsers- Chrome, Firefox and Safari) were only for "snapshot workspace", "fork workspace" and "preview"- no trash icon. But from the instructional video page, I clicked up at the top on "Workspaces" like you said, and that link took me to a link of all my past workspaces. On that page, they had the trash icon as one of the options to the right of every title. I trashed it there and then relaunched and all my past edits were gone. Thanks for your help!
Steven Parker
231,236 PointsThat's right, there's no way to delete the workspace from inside itself.
Meg Cusack
11,448 PointsI see now. Thank you!
Matthew Cramer
1,075 PointsThank you! Very helpful!
Meg Cusack
11,448 PointsMeg Cusack
11,448 PointsI don't have a trash icon on the right side of the workspace?
Steven Parker
231,236 PointsSteven Parker
231,236 PointsAre you sure you're on the workspaces page? Click on the blue word above, or the word "Workspaces" on the menu bar at the top of the window. At the far right of each workspace you should see 3 icons, the last one is the trash can.