How to remove (delete) Eclipse workspace from the dropdown list.
May 30
Java Eclipse, workspace 3 Comments
Eclipse is my favorite Java IDE. To manage projects Eclipse uses ‘Workspaces’. Workspace is basically a folder on your disk where your project files are stored. To work on a project you load its workspace in Eclipse. Eclipse remembers the workspaces you worked on previously. A drop down list of all (configurable) previous workspaces is displayed when you want to switch workspace. This is pretty good except for one little annoyance. Eclipse presents all previous workspaces even if you have deleted the project folder from the disk. All those deleted workspaces only clutter the list. But there is a very easy way to clean up the list. All you have to do is to edit org.eclipse.ui.ide.prefs file.
This file is located under configuration/.setting directory under your eclipse installation directory. For e.g. if you have Eclipse installed under C:\ides\eclipse the file will be under C:\ides\eclipse\configuration\.settings.
Open the file in your favorite text editor (like PNP).
You will see a line for RECENT_WORKSPACES. Edit this line and delete the entries for the workspaces you no longer need.
For instance I have following line in my file.
RECENT_WORKSPACES=C\:\\DevProjects\\LoginTutorial\nC\:\\DevProjects\\SpringEx\nC\:\\DevProjects\\JavaEncryption\nC\:\\DevProjects\\GoogleApps
All these projects are included in the drop down list. To remove GoogleApps workspace all I need is to delete it form this line. So the line will become
RECENT_WORKSPACES=C\:\\DevProjects\\LoginTutorial\nC\:\\DevProjects\\SpringEx\nC\:\\DevProjects\\JavaEncryption
Save the file and exit the editor. Next time you will start Eclipse you will not see the deleted workspace(s).
In this file there is another line for MAX_RECENT_WORKSPACES. By default it is to set to 5. You can change this value to be a lower/greater number if you so desire.
Related posts:



Apr 23, 2010 @ 08:45:40
Its possible to remove the workspace in eclipse without much complications. The options are available under Preferences->General->Startup and Shutdown->Workspaces.
Dec 14, 2010 @ 08:44:02
The comment above (about performing this change inside Eclipse) appears to be in error. I visited Window > Preferences > General > Startup and Shutdown > Workspaces but there is no option to remove entries from the cached list of recently-opened workspaces. There are options to prompt for a workspace on startup, and to refresh the workspace on startup, but I don’t see any place to manipulate the list of already-recorded recently-visited workspaces.
Separately from that, under Window > Preferences > General > Startup and Shutdown > Workspace there are a few other options related to workspaces but again, these do NOT include an option to remove entries from the cached list of recently-opened workspaces.
I used the ‘surgical’ approach described in the original post (edit the file directly) and it appears to work fine. Just one very minor correction: the directory appears to be \configuration\.settings (with an ‘s’ on the end of ‘.settings’), not ‘.setting’ (with no ‘s’).
Apr 08, 2011 @ 01:03:33
Maybe it depends on the version you’re using. In Eclipse 3.5.2 there is a “recent workspaces” list where you can remove obsolete workspaces under Window > Preferences > General > Startup and Shutdown > Workspaces. I just did that a minute ago and the entry is now gone on startup.