How do I delete an Eclipse workspace?

Discussion in 'Mac Programming' started by spaceballl, May 8, 2008.

  1. spaceballl macrumors 68030

    spaceballl

    Joined:
    Nov 2, 2003
    Location:
    San Francisco, CA
    #1
    How do I do this, I did some googling and the few instructions I found were outdated, and the files didn't seem to match up with the files in the OS X install. Anyone know how to do this?
     
  2. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #2
    Appears to me that inside the directory where I tell eclipse to store my workspace, there is a single directory named ".metadata" I would guess you could "rm -rf .metadata" to nix the whole shibang.
     
  3. spaceballl thread starter macrumors 68030

    spaceballl

    Joined:
    Nov 2, 2003
    Location:
    San Francisco, CA
    #3
    I did that before posting to see what would happen :).

    Unfortunately, workspaces don't appear to be stored there.
     
  4. RaceTripper macrumors 68030

    Joined:
    May 29, 2007
    #4
    You can just delete the workspace directory and eclipse will prompt you for a new one next time it runs. If you store your projects inside the workspace directory (the default when eclipse project wizard runs), you'll need to relocate them before deleting the workspace.

    Deleting your workspace will also delete your preferences, code templates, update site, etc. so you may want to export them first.
     
  5. spaceballl thread starter macrumors 68030

    spaceballl

    Joined:
    Nov 2, 2003
    Location:
    San Francisco, CA
    #5
    No that doesn't seem to work. I've deleted the workspace directory completely, but somehow eclipse still lists it under File->Switch Workspace. It's not a huge deal, but every now and then Eclipse will throw an error at me and then i check later and the directory has been recreated!
     
  6. RaceTripper macrumors 68030

    Joined:
    May 29, 2007
    #6
    Now that you mention it, I get an empty Workspace folder in my Documents folder every now and then. I ignore it. I use Eclipse 3.3.2 and have it prompt me for a workspace when starting.
     

Share This Page