This SO post explains very well how to install command line tools for Xcode 4.4.
But how to uninstall them?
sudo /Developer/Library/uninstall-devtools –mode=all works for 10.8.5