Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Basics (Retired) Introducing JavaScript The Console Challenge

Meg Cusack
Meg Cusack
11,448 Points

How 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
Steven Parker
211,091 Points

You 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
Meg Cusack
11,448 Points

I don't have a trash icon on the right side of the workspace?

Steven Parker
Steven Parker
211,091 Points

Are 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.

Meg Cusack
Meg Cusack
11,448 Points

I 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
Steven Parker
211,091 Points

That's right, there's no way to delete the workspace from inside itself.

Meg Cusack
Meg Cusack
11,448 Points

I see now. Thank you!