Mac storage basics · Programming languages and toolchains
Can I delete Apple's Command Line Tools to save space?
Short answer: You can delete /Library/Developer/CommandLineTools, but git, Homebrew and compilers need it. Reinstall any time with xcode-select --install.
You can, but many things depend on them — git, compilers, Homebrew and the Python that ships with them. Only remove them if you don't do any development.
They live in /Library/Developer/CommandLineTools; deleting that folder (administrator password needed) removes them. If something later asks for them, macOS offers to reinstall, or run xcode-select --install. If you have full Xcode installed, the tools inside Xcode are separate — see freeing space used by Xcode.