Thursday, July 23, 2020

How to uninstall Mac OS Xcode command-line tools

You can uninstall Xcode command-line tools by manually deleting the directory /Library/Developer/CommandLineTools
You can delete this directory either from Finder App or by entering following command in Terminal App.
sudo rm -rf /Library/Developer/CommandLineTools

Resetting the default command line tools:

Once you remove the directory, enter below command to reset the default command-line tools
sudo xcode-select -r


Above commands should also help you remove command-line tools from Mac OS auto update.



No comments: