1. See what the cache holds
CocoaPods keeps a copy of every pod version it downloads so the next pod install can reuse it. pod cache list shows the contents as a tree organised by pod, with paths; add a pod name to see only that pod. On a Mac those paths sit under ~/Library/Caches/CocoaPods, and du measures the folder without changing it.
Because the folder lives in ~/Library/Caches, Storage settings counts it with other app caches rather than under the Developer category. That is one reason a Mac used for iOS work can show a large System Data figure even after Xcode’s own files have been cleared.
pod cache list
du -sh ~/Library/Caches/CocoaPods2. Clear one pod or the whole cache
pod cache clean followed by a pod name removes that pod’s cached copies. If several versions are cached, CocoaPods asks which one to remove. To empty the cache completely, add --all; the command refuses to run with no name and no --all, so the whole cache is never cleared by accident.
Clearing the cache does not touch your projects. Existing Pods folders keep working, and the next pod install downloads whatever it needs again, which is slower and needs a network connection. Run it with Xcode closed so a build in progress is not reading from the cache at the same moment.
pod cache clean Alamofire
pod cache clean --all3. Remove an old master spec repo
Older CocoaPods setups cloned the entire public Specs repository into ~/.cocoapods/repos, usually under the name master. CocoaPods 1.8 made the CDN the default source instead, and the release post gives pod repo remove master as the cleanup once your Podfile uses the CDN or has no git source line. Check with pod repo list and measure the folders before deciding.
Keep any private spec repo your team publishes to; removing it breaks pod install for projects that depend on it until you add it back. If a Podfile still names the git-based Specs source explicitly, update it to the CDN source first, or the repo is cloned again on the next install.
pod repo list
du -sh ~/.cocoapods/repos/*
pod repo remove master4. Remove Pods folders from inactive projects
Each project that uses CocoaPods has a Pods folder next to its Podfile, holding the downloaded sources and a generated Xcode project. For a project you are not working on, move the Pods folder to the Trash and keep the Podfile and Podfile.lock. Running pod install later rebuilds it at the exact versions recorded in the lock file.
Check first whether your team commits the Pods folder to git; some do, and deleting it then shows up as a large change in version control. pod deintegrate is not a cleanup tool: it removes CocoaPods from the Xcode project entirely, which only makes sense when migrating away. The project’s build data in Derived Data is a separate folder with its own guide.
When a project has moved to Swift Package Manager and builds cleanly, that is the moment for pod deintegrate. After it, the Podfile, Podfile.lock, Pods folder and the generated workspace are no longer used, and can go once the change is committed.
What to expect from here
The CocoaPods team has announced that trunk becomes read-only on December 2, 2026. Their post says existing builds keep working, but pods published through trunk stop receiving updates. As projects move their dependencies to Swift Package Manager, their Pods folders and cache entries become safe to remove once the migration is committed.
Swift Package Manager keeps its own downloads, and Xcode stores a project’s package checkouts inside Derived Data, so clearing CocoaPods does not affect them. Whatever you move to the Trash still takes space until you empty it.
Common questions
Why does the CocoaPods cache count toward System Data instead of Developer storage?
The cache sits in ~/Library/Caches/CocoaPods, and Storage settings groups files there with other app caches rather than the Developer category, which is one reason a Mac used for iOS work shows a large System Data figure.
Is it safe to delete a project's Pods folder?
Yes, as long as you keep the Podfile and Podfile.lock. Running pod install later rebuilds the Pods folder at the exact versions recorded in the lock file, though check first whether your team commits Pods to git.
What does pod deintegrate actually do, and should I use it to save space?
It is not a cleanup tool. It removes CocoaPods from the Xcode project entirely, which only makes sense when migrating away from CocoaPods, such as once a project has moved to Swift Package Manager.
Can I remove the old CocoaPods master spec repo?
Yes, once your Podfile uses the CDN source (the default since CocoaPods 1.8) or has no git source line, pod repo remove master cleans it up. Keep any private spec repo your team publishes to.
References & further reading
These guides combine the linked official guidance with ClearDisk’s documented behavior. Your files and app settings determine the right next step.