After an incredibly short summer, I needed to clean up my flash drives. I ran Eclipse on a workspace stored on one. All my source code for every project was stored neatly and distinctly in their own project folders. Of course Eclipse stores all sorts of meta data and even the compiled classes in those project directories too. Since I wanted to donate my code base to my old teacher, I needed to clean it up.
I tried to use the Windows Command Prompt, but I totally failed. So I quickly whisked my files over to a temporary directory on my Linux server. Once there, I could leverage the awesome power of the terminal.
There are four major things to remove in the Eclipse workspace directories:
.project. So we know what to target. I used the follow four commands (but surely could be merged into a single line by an expert!):
rm -rf */.settings
rm -rf */bin
rm -rf */.classpath
rm -rf */.project
I should note that before running those commands, I copied the original directory to make a backup. Please, make a backup! because you don’t get to recover from the Terminal’s
When you inspect your workspace directories, you should notice those four things gone. It’s really that easy!