Tuesday, July 26, 2005

How To Remove An Obsolet Workspace From Eclipse 3.1

Sometimes you would like to remove an obsolet workspace from Eclipse. Suppose you have made a test workspace to try some things out and now you don't wont and don't need it anymore.

If you remove the workspace from your disk, it'll still appear in the workspace launcher, when you start up Eclipse.

So, how do you get rid of it?

Ecplise is storing the workspace information in a preferences file called "org.eclipse.ui.ide.prefs". This file is located under "%ECLIPSE_HOME%\configuration\.settings" and contains a key named "RECENT_WORKSPACES". The value of this key contains a comma seperated list of workspaces, more precisely the path to the workspaces. If you delete one of the entries, it'll disappear from the workspace launcher.

What you have to do is the following:
  • exit Eclipse
  • delete the workspace from your disk
  • delete the path pointing to your obsolet workspace in the mentioned preferences file
  • start Eclipse
You shouldn't see the workspace anymore in your workspace launcher :-)

19 comments:

Anonymous said...

Thanks for the clear guidelines.

I was looking for the same under various menus and preferences, but could not find anything like "manage workspace".

Now I could delete my obselete workspaces :-).

Anonymous said...

This works a treat under Windows for version 3.2 of eclipse.

I don't suppose you know how to do this on linux? The .settings file is hidden on linux and when I try to open the file, I get an error saying it's not a readable file.

Thanks.

Anonymous said...

Thanks a lot.

Anonymous said...

sudo or su to root to edit the file

Anonymous said...

I was looking 4 that hardly... but now I got it.. Thanx a lot ;)

Anonymous said...

Hi

Thanks for your post. It was quite difficult to finde a how2 delete a workspce from Eclipse...


Cheers Guido

Anonymous said...

Thank you! Exactly what I was looking for :)

Anonymous said...

"Manage Workspaces" is clearly a missing feature, but with your guide I was able to get rid of the "overlap"-problems - at last! :-)

Anonymous said...

Perfect! Thanks! Why doesn't Eclipse offer that in the Preferences? don't understand... it would be so easy.

Anonymous said...

thankyou, it's really help !

Anonymous said...

Thanks a lot. That helped to remove the workspace.

Fandez said...

Thanks for this advice!
greeting from Spain

Manuel Padilha said...

Thank you!

Paul-H said...

thanks, exactly what I was looking for since a long time

Dan said...

Thank you! One Google search and your post came up...much appreciated!

Bala said...

I guess the tip is not working for eclipse3.4

Steve said...

For me, my installation wasn't using %ECLIPSE_HOME%\configuration\.settings. I'm on 3.6.1, however I did finally find the correct configuration file under a ~/.eclipse directory.

Thanks for helping me get rid of an annoying workspace reference.

Anonymous said...

thanks. that was good!

Anonymous said...

thanks a lot.......for your post :D