Xcode 6.1 - How to uninstall command line tools?

TomNg picture TomNg · Dec 12, 2014 · Viewed 107.7k times · Source

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

Answer

Aaron Brager picture Aaron Brager · Apr 25, 2015

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

sudo rm -rf /Library/Developer/CommandLineTools