I am trying to uninstall Xcode command line tools and I used the command:
sudo rm -rf /Library/Developer/CommandLineTools
to delete the folder but when I use the command:
xcode-select -p
it still shows the folder:
/Library/Developer/CommandLineTools
Am I doing something wrong since the folder is still showing up?
Note that when I issue the command
ls -al /Library/Developer/CommandLineTools
the computer tells me there is indeed no such file or directory. I have confirmed that the trash is empty after deleting the folder and restarted my computer.
The computer is an M1 MacBook Air with macOS Monterey 12.2.1. Xcode was installed on it previously but I deleted the files associated with it.
xcode-select -p
prints the currently selected path. Doesn't mean there's anything THERE.