Safe to Delete

CocoaPods Master Spec Repository (~/.cocoapods/repos)

Quick Answer: The CocoaPods repos directory stores local git clones of the iOS podspec master repository. Clearing repos is safe.

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...

Related in developer

The AI Engineer's Model Disk Cleanup Guide: Hugging Face, Ollama & PyTorch

The ultimate 1,200-word field guide for AI developers and local LLM hobbyists to reclaim 200GB+ from Ollama, Hugging Face, PyTorch, and vLLM model weights.

Safe to Delete

Android Studio System Index Cache (AndroidStudio Cache)

Android Studio caches Gradle project indexes, VFS caches, and compiler artifacts. Invalidate and clear is safe.

Safe to Delete

Ansible Automation Temp & Fact Cache (~/.ansible/tmp)

Ansible stores temporary playbook execution modules and target host fact JSON caches in ~/.ansible/tmp. Clearing Ansible tmp is safe.

Safe to Delete
Back to all files