What it is
.NET's global package folder.
Can you delete it?
Yes, it is rebuilt automatically. dotnet restore downloads packages again.
How to clean it safely
- Run:
dotnet nuget locals all --clear
How big is it on your Mac?
This read-only command prints its size and changes nothing:
Terminal
du -sh ~/".nuget/packages" 2>/dev/nullStep-by-step guide: Developer caches on a Mac →
Related folders
- bin / obj (.NET) ·
<project>/bin and obj - Go build cache ·
~/Library/Caches/go-build - Gradle wrapper distributions ·
~/.gradle/wrapper/dists - Turborepo cache ·
<project>/.turbo - Helm cache ·
~/Library/Caches/helm - npm cache ·
~/.npm
Questions
Is it safe to delete ~/.nuget/packages?
Yes, it is rebuilt automatically. dotnet restore downloads packages again.
Let the raccoon do it, safely
Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.
Download for Mac