Bottom Line: It is 100% safe to clear ~/.cocoapods/repos. CocoaPods stores a full git history of all published iOS podspecs. Deleting it forces CocoaPods to use CDN fetching, saving gigabytes of SSD storage.
What is CocoaPods repos?
Located at ~/.cocoapods/repos/trunk or ~/.cocoapods/repos/master on macOS, CocoaPods historically maintained a multi-gigabyte Git clone of every iOS Swift and Objective-C podspec.
Can You Delete CocoaPods Repos?
✅ Yes, safe to delete.
- Modern CocoaPods (v1.8+) uses CDN (
cdn.cocoapods.org) by default, so local master repos are no longer needed.
How to Delete CocoaPods Repos
pod repo remove master
rm -rf ~/.cocoapods/repos/*
Discussion
Loading authentication...