Xcode 6.1 – How to uninstall command line tools

command-line-toolxcode

I installed Xcode command line tool by issuing xcode-select --install; now I want to uninstall it (without uninstalling Xcode).

I've tried

sudo /Developer/Library/uninstall-devtools --mode=all

but then I get the error

sudo: /Developer/Library/uninstall-devtools: command not found

Best Solution

If you installed the command line tools separately, delete them using:

sudo rm -rf /Library/Developer/CommandLineTools