#!/bin/sh

echo
echo WARNING: this will remove all eclipse settings from your account
echo are you sure you want to do this [y/n]?

read ANSWER
if [ $ANSWER != 'y' ]; then
  echo script aborted
  exit
fi

echo removing eclipse settings, please wait...

cd ~
rm -rf .eclipse-configuration/
find . -name ".metadata" -exec rm -rf \{\} \;
find . -name ".externalToolBuilders" -exec rm -rf \{\} \;
find . -name ".settings" -exec rm -rf \{\} \;
find . -name ".project" -exec rm -rf \{\} \;
find . -name ".classpath" -exec rm -rf \{\} \;

echo eclipse settings have been removed

echo NOTE: you may still want to manually remove old workspace directories that you may have created as these cannot be automatically detected

