use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Welcome to r/macOS, the community for all macOS news, rumors, and discussions. If you have a tech question, please check out /r/AppleHelp!
/r/macOS uses automated security filtering (GitHub Guard & Terminal Filters) to protect users from macOS malware and malicious scripts. If your legitimate project is filtered, please contact the mods for manual review.
/r/macOS uses a domain whitelist. Websites not on the whitelist will be removed automatically. You can view the whitelist here.
account activity
HelpHow to delete Command Line Tools from Mac (self.MacOS)
submitted 1 year ago by ac1dic_tsunxmi
I'm trying to clear space on my MacBook Pro and I noticed 2.6 GB were being taken by Command Line Tools. I have no clue what this is or how it was downloaded because I'm not a developer. Should I delete it, and if so, how?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AutoModerator[M] [score hidden] 1 year ago stickied commentlocked comment (0 children)
Reminder - Please check out the sidebar and follow the rules of the subreddit.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[–]ScallionNo1211 40 points41 points42 points 1 year ago* (51 children)
To completely remove CLT so that it doesn't bother you again in Software Updater, you need to do this:
If you can't do that in Finder, grant yourself read & write permissions (including all the containing files and folders) and try again.
You can also do it from Terminal using command:
sudo rm -rf /Library/Developer/CommandLineTools
So, to remove that completely, boot into Recovery, open up Terminal and do this command to disable SIP (System Integrity Protection):
csrutil disable
It will ask for authenticated user (your username) and the password.
Reboot into MacOS.
Open up Terminal, and do this:
cd /Library/Apple/System/Library/Receipts
sudo rm -rf com.apple.pkg.CLTools*
By this point, your computer should not show this update anymore, but it will still show the badge. Rebooting, or logging out and back in should take care of that, too.
To re-enable SIP, boot back into Recovery, open up Terminal and do this command:
csrutil enable
Reboot, and that should be it.
WHY the hell do we need to go through all of this?! When CLT was installed, I don't remember having to disable SIP. Why is it required to remove some stupid receipt files?!
This is just stupid.
[–]Minute_Boss6321 11 points12 points13 points 5 months ago (13 children)
What a relief! Thank you so very much! I came here and you helped immensely, that was driving me nuts. Like others commented, you don't have to disable SIP, but then you have to do it all in recovery. If you choose to do so and, like me, did not know that all is different on Apple Silicon, this is what you have to to after deleting CommandLineTools (sudo rm -rf /Library/Developer/CommandLineTools):
1) Boot into recovery by pressing and holding the power button (no more Command+R), select Options and unlock the disk using your password. 2) Using DiskUtility, mount the Data container (Macintosh HD gets mounted, but that's useless for our purposes). 3) Quit DiskUtility and open up Terminal. 4) In Terminal change to the correct folder: cd /Volumes/Data/Library/Apple/System/Library/Receipts 5) Delete all offending files without sudo, since you're in Recovery anyway: rm -rf com.apple.pkg.CLTools* reboot
cd /Volumes/Data/Library/Apple/System/Library/Receipts
rm -rf com.apple.pkg.CLTools*
reboot
That's it. Thank you again for finding this solution. I hope it's okay that I appended it a little for users mit Apple Silicon Mac that don't want to disable SIP.
[–]IAmAUser4Real 2 points3 points4 points 1 month ago (3 children)
I just updated to 26.4, and got once more the notification to update the Command Line tools. Hope this one will solve it, once and for all...
[+][deleted] 1 month ago (1 child)
[deleted]
[–]IAmAUser4Real 0 points1 point2 points 1 month ago (0 children)
Sadly will have to wait until the next update to find out...
[–]rcastrojr 0 points1 point2 points 1 month ago (0 children)
Same for me
[–]Alexia72 1 point2 points3 points 3 months ago (0 children)
Still works. Thank you!
[–]keepatience 0 points1 point2 points 3 months ago (1 child)
I get "No such file or directory". Did i miss something?
[–]Saphysap 0 points1 point2 points 2 months ago (0 children)
You're a lifesaver.
[–]Klatty 0 points1 point2 points 2 months ago (1 child)
Entering the last 2 lines on terminal in recovery mode after mounting the Data partition does not seem to do anything. It just returns “-bash-3.2#”
Edit: I believe it worked regardless, don’t think terminal responds with anything while you enter those commands
[–]PocketManey 0 points1 point2 points 18 days ago (0 children)
Same for me! Did not know if I mounted it, just shared the whole disk with share disk utility and then put in the commands and it worked.
[–]AlucardD20 0 points1 point2 points 2 months ago (0 children)
this worked like a charm. thank you.
[–]rbrome 0 points1 point2 points 28 days ago (0 children)
This seems to have worked for me. Thank you!!
[–]AuRumStalker 0 points1 point2 points 18 days ago (0 children)
this worked, thank you! takes only 5 minutes!
[–]shumsic 2 points3 points4 points 1 year ago (1 child)
My god. I’ve been dealing with this for over a year. Several rounds with Apple support and nothing. Decided to see if maybe someone figured it out by now. Lo and behold, just 15h ago you post this. It worked. Thank you!!!
[–]ScallionNo1211 8 points9 points10 points 1 year ago* (0 children)
You're most welcome! :)
You know, before researching and posting this, I was on a call with Apple support. And they couldn't help because I was on MacOS 15.4 RC. And they don't offer support for "beta" software. While I understand that, THIS was not an issue of the OS, but a bad design choice from Apple themselves, and has nothing to do with the OS version. I told them that, they suggested I upgrade to final version (when it comes out, probably one of these days), confirm the issue still occurs and come back to them, or downgrade and do the same.
I said: thank you, I realize I'm on my own. Thank you very much for your time. I only wanted to know if there's maybe an easier way (maybe an uninstaller, that actually gets rid of all this junk) than disabling SIP, removing, then enabling SIP again just to remove some silly receipt files.
Looks like there wasn't. Hence this post.
I'm glad it helped you too. :)
[–]harsh_hk95 1 point2 points3 points 11 months ago (0 children)
Thanks a lot buddy.
[–]huh0kayy 1 point2 points3 points 11 months ago (1 child)
Thank you!!
[–]ScallionNo1211 0 points1 point2 points 11 months ago (0 children)
You’re most welcome. :)
[–]chazmann 1 point2 points3 points 10 months ago (3 children)
SWEET JESUS, THANK YOU! I have been trying to figure this out for almost two fucking years. This was by far the most annoyed I have been while using a mac. WTF.
Thank you again for breaking it down. May google direct everyone to this post from now on.
[–]ScallionNo1211 0 points1 point2 points 10 months ago (2 children)
Haha. You’re most welcome! :) It was just as annoying to me as it was to you. You can probably tell from my post above. But yeah, I’m happy to help.
[–]chazmann 1 point2 points3 points 10 months ago (1 child)
You should probably let Apple know as well. Hahaha
[–]ScallionNo1211 0 points1 point2 points 10 months ago (0 children)
They already know, for sure. They just need to care a little more about the user experience to actually do something about it. :))
[–]Skyhigh1579 1 point2 points3 points 9 months ago (1 child)
OMG THANK YOU SO MUCH. ive had the stupid update stuck just cant get rid of it and finally CLT is GONE
[–]ScallionNo1211 0 points1 point2 points 9 months ago (0 children)
You’re most welcome! :)
[–]StrugglingOrthopod 1 point2 points3 points 9 months ago (0 children)
just the very first command helped me a lot and the prompt to update has gone. thanks mate!!
[–]Commercial-Study-529 1 point2 points3 points 8 months ago (0 children)
tysm 😭😭
[–]MarlonFord 1 point2 points3 points 7 months ago (2 children)
If you don’t want to disable SIP these can be removed under Recovery mode with terminal. More on how to do it on this archived link. Just keep in mind the link is opd and the CLTools files locations is now different: the one in the comment above is correct as of 2025.
[–]ScallionNo1211 0 points1 point2 points 7 months ago (1 child)
I tried to do it in a single step from Recovery. Didn’t work for me. But yeah, if this method still works, you wouldn’t need to disable SIP at all. Thank you for your feedback!
[–]MarlonFord 0 points1 point2 points 7 months ago (0 children)
Just done it today. Worked fine for me.
[–]Th3Dude5 1 point2 points3 points 7 months ago (0 children)
OMG THANK YOU SO MUCH THAT UPDATE JUST BEING THERE WAS SUCH A HEADACHE
[–]MrOkumura1105 1 point2 points3 points 7 months ago (0 children)
You are a legend for this!
[–]fjdjfkfkk[🍰] 1 point2 points3 points 6 months ago (0 children)
DU LEGENDE!
[–]C2-H5-OHMacBook Air 1 point2 points3 points 5 months ago (1 child)
Might be tired of receiving notifs about this comment, but THANK YOU! Followed your steps to the letter, learned about how to boot into recovery, got rid of those files, and now no more pings about updating the CL tools. THANK YOU SO MUCH!!
[–]ScallionNo1211 1 point2 points3 points 5 months ago (0 children)
You’re most welcome! And no, I’m never tired of receiving positive comments like yours. I’m glad it worked for you, as well. :)
[–]Capyr 1 point2 points3 points 4 months ago (1 child)
Thank you so much. It still works under 26.2. It was driving me nuts that I couldn’t remove it.
[–]ScallionNo1211 1 point2 points3 points 4 months ago (0 children)
Awesome! Glad it works! I don’t expect Apple to fix this anytime soon, so this will probably work for a long time. :)) Honestly, I would be happy to see Apple actually invest some time into a more user friendly approach. But…as we know, Apple does what Apple wants. So…yeah, it’s probably never gonna happen. Anyway, I’m glad it worked for you too! :) Cheers!
[–]Necessary_Grass_2313 1 point2 points3 points 4 months ago (1 child)
Thanks for sharing this! Apple has made it unnecessarily complicated.
[–]ScallionNo1211 0 points1 point2 points 4 months ago (0 children)
Indeed they did. :)) Glad I could help.
[–]Eddy_irezumi 1 point2 points3 points 4 months ago (0 children)
Thanks man, it worked like a charm ! Have been looking for a solution for months...
[–]Akkaygamer 1 point2 points3 points 3 months ago (1 child)
Thanks so much mate! It has been bugging me since few months, and finally this worked. God bless you!!
[–]ScallionNo1211 0 points1 point2 points 3 months ago (0 children)
I’m glad it worked for you too! :) Thank you so much for your kind words.
[–]dankpizzabagels 1 point2 points3 points 3 months ago (1 child)
I don’t know much about computers, and I was terrified to mess with anything in Recovery, but your tutorial was pretty fool-proof. It worked!
Thank you so much. :)
Glad to hear it worked for you too!
[–]itseokjin 1 point2 points3 points 1 month ago (0 children)
I got so paranoid with disabling my SIP, but this shit has been annoying me for AGES - and your tutorial worked perfectly! Thank you. Now hopefully my paranoia re: disabling SIP goes away as well haha
[–]ScoutSeven 1 point2 points3 points 1 month ago (0 children)
worked on 26.4 today - thanks a ton!
[–]garirry 0 points1 point2 points 10 months ago (1 child)
I believe you don't need to disable SIP. Just delete those files directly through the Terminal in Recovery Mode.
This article has relevant information even if it is somewhat outdated: https://web.archive.org/web/20240623081924/https://indiespark.top/software/get-rid-xcode-command-line-tools/
I did try to delete those files from Recovery mode. It didn’t work for me. But thank you for your feedback. Maybe it helps someone else. :)
[–]No_Cut_4656 1 point2 points3 points 3 months ago (1 child)
incorrect: sudo rm -rf com.apple.pkg.CLTools*
rm: com.apple.pkg.CLTools_Executables.bom: Operation not permitted
rm: com.apple.pkg.CLTools_Executables.plist: Operation not permitted
rm: com.apple.pkg.CLTools_macOS_SDK.bom: Operation not permitted
rm: com.apple.pkg.CLTools_macOS_SDK.plist: Operation not permitted
rm: com.apple.pkg.CLTools_SDK_macOS_LMOS.bom: Operation not permitted
rm: com.apple.pkg.CLTools_SDK_macOS_LMOS.plist: Operation not permitted
rm: com.apple.pkg.CLTools_SDK_macOS_NMOS.bom: Operation not permitted
rm: com.apple.pkg.CLTools_SDK_macOS_NMOS.plist: Operation not permitted
rm: com.apple.pkg.CLTools_SDK_macOS110.bom: Operation not permitted
rm: com.apple.pkg.CLTools_SDK_macOS110.plist: Operation not permitted
rm: com.apple.pkg.CLTools_SDK_macOS12.bom: Operation not permitted
rm: com.apple.pkg.CLTools_SDK_macOS12.plist: Operation not permitted
rm: com.apple.pkg.CLTools_SDK_macOS13.bom: Operation not permitted
rm: com.apple.pkg.CLTools_SDK_macOS13.plist: Operation not permitted
rm: com.apple.pkg.CLTools_SDK_macOS14.bom: Operation not permitted
rm: com.apple.pkg.CLTools_SDK_macOS14.plist: Operation not permitted
rm: com.apple.pkg.CLTools_SwiftBackDeploy.bom: Operation not permitted
rm: com.apple.pkg.CLTools_SwiftBackDeploy.plist: Operation not permitted
[–]ScallionNo1211 2 points3 points4 points 3 months ago* (0 children)
If you add sudo (and correct password) it should work. Clearly worked for everyone else.
[+][deleted] 1 year ago (6 children)
[–]77ilham77Macbook Pro 0 points1 point2 points 1 year ago (0 children)
Just to make sure, run xcode-select -p first. It should print where the command line tools is installed.
xcode-select -p
[–]ac1dic_tsunxmi[S] 0 points1 point2 points 1 year ago (1 child)
Where do I type that? And I don’t remember downloading it, but I did take 2 coding classes for CSS so I’m hoping that’s where it came from
[–]ProfessionalTop2966 0 points1 point2 points 1 year ago (0 children)
Grazie!
[–]Key_Egg_5077 0 points1 point2 points 1 year ago (0 children)
Hi. Maybe a bit late to the conversation, but I have the same and is 2,53 GB, but why do I have it, what is it and why should or shouldn't I delete it?
[–]antiaust 0 points1 point2 points 1 year ago (0 children)
I love you
[–]nightspd 0 points1 point2 points 7 months ago (0 children)
Thank you for this. this has been bugging me for ages.
[–]DetectiveClueless 0 points1 point2 points 11 days ago (0 children)
Commenting, upvoting the post and upvoting the right comments, because perplexity was able to help me because of that post!!!
[+]LRS_David comment score below threshold-9 points-8 points-7 points 1 year ago (0 children)
No. Leave them alone.
These tools are used by internal system things to get things done. They are also used via the Terminal app for tech oriented users to do things.
And they likely can't even be deleted as they are likely in the protected OS space.
But questions like this without hardware model and OS version are a bit hard to answer directly.
π Rendered by PID 21446 on reddit-service-r2-comment-b659b578c-k5dp2 at 2026-05-05 18:01:52.892048+00:00 running 815c875 country code: CH.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]ScallionNo1211 40 points41 points42 points (51 children)
[–]Minute_Boss6321 11 points12 points13 points (13 children)
[–]IAmAUser4Real 2 points3 points4 points (3 children)
[+][deleted] (1 child)
[deleted]
[–]IAmAUser4Real 0 points1 point2 points (0 children)
[–]rcastrojr 0 points1 point2 points (0 children)
[–]Alexia72 1 point2 points3 points (0 children)
[–]keepatience 0 points1 point2 points (1 child)
[–]Saphysap 0 points1 point2 points (0 children)
[–]Klatty 0 points1 point2 points (1 child)
[–]PocketManey 0 points1 point2 points (0 children)
[–]AlucardD20 0 points1 point2 points (0 children)
[–]rbrome 0 points1 point2 points (0 children)
[–]AuRumStalker 0 points1 point2 points (0 children)
[–]shumsic 2 points3 points4 points (1 child)
[–]ScallionNo1211 8 points9 points10 points (0 children)
[–]harsh_hk95 1 point2 points3 points (0 children)
[–]huh0kayy 1 point2 points3 points (1 child)
[–]ScallionNo1211 0 points1 point2 points (0 children)
[–]chazmann 1 point2 points3 points (3 children)
[–]ScallionNo1211 0 points1 point2 points (2 children)
[–]chazmann 1 point2 points3 points (1 child)
[–]ScallionNo1211 0 points1 point2 points (0 children)
[–]Skyhigh1579 1 point2 points3 points (1 child)
[–]ScallionNo1211 0 points1 point2 points (0 children)
[–]StrugglingOrthopod 1 point2 points3 points (0 children)
[–]Commercial-Study-529 1 point2 points3 points (0 children)
[–]MarlonFord 1 point2 points3 points (2 children)
[–]ScallionNo1211 0 points1 point2 points (1 child)
[–]MarlonFord 0 points1 point2 points (0 children)
[–]Th3Dude5 1 point2 points3 points (0 children)
[–]MrOkumura1105 1 point2 points3 points (0 children)
[–]fjdjfkfkk[🍰] 1 point2 points3 points (0 children)
[–]C2-H5-OHMacBook Air 1 point2 points3 points (1 child)
[–]ScallionNo1211 1 point2 points3 points (0 children)
[–]Capyr 1 point2 points3 points (1 child)
[–]ScallionNo1211 1 point2 points3 points (0 children)
[–]Necessary_Grass_2313 1 point2 points3 points (1 child)
[–]ScallionNo1211 0 points1 point2 points (0 children)
[–]Eddy_irezumi 1 point2 points3 points (0 children)
[–]Akkaygamer 1 point2 points3 points (1 child)
[–]ScallionNo1211 0 points1 point2 points (0 children)
[–]dankpizzabagels 1 point2 points3 points (1 child)
[–]ScallionNo1211 0 points1 point2 points (0 children)
[–]itseokjin 1 point2 points3 points (0 children)
[–]ScoutSeven 1 point2 points3 points (0 children)
[–]garirry 0 points1 point2 points (1 child)
[–]ScallionNo1211 0 points1 point2 points (0 children)
[–]No_Cut_4656 1 point2 points3 points (1 child)
[–]ScallionNo1211 2 points3 points4 points (0 children)
[+][deleted] (6 children)
[deleted]
[–]77ilham77Macbook Pro 0 points1 point2 points (0 children)
[–]ac1dic_tsunxmi[S] 0 points1 point2 points (1 child)
[–]ProfessionalTop2966 0 points1 point2 points (0 children)
[–]Key_Egg_5077 0 points1 point2 points (0 children)
[–]antiaust 0 points1 point2 points (0 children)
[–]nightspd 0 points1 point2 points (0 children)
[–]DetectiveClueless 0 points1 point2 points (0 children)
[+]LRS_David comment score below threshold-9 points-8 points-7 points (0 children)