What it is
Packages downloaded by dart pub and flutter pub.
Can you delete it?
Yes, it is rebuilt automatically. They are downloaded again on the next pub get.
How to clean it safely
- Run:
flutter pub cache clean (or dart pub cache clean) - Run flutter pub get in projects you still use.
How big is it on your Mac?
This read-only command prints its size and changes nothing:
Terminal
du -sh ~/".pub-cache" 2>/dev/nullStep-by-step guide: Developer caches on a Mac →
Related folders
- CocoaPods cache ·
~/Library/Caches/CocoaPods - Unreal DerivedDataCache ·
Epic/UnrealEngine/Common/DerivedDataCache - Terraform plugin cache ·
~/.terraform.d/plugin-cache - Julia compiled cache ·
~/.julia/compiled - Cursor cache ·
~/Library/Application Support/Cursor/Cache - Python __pycache__ ·
<project>/__pycache__
Questions
Is it safe to delete ~/.pub-cache?
Yes, it is rebuilt automatically. They are downloaded again on the next pub get.
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