> The CocoaPods cache in ~/Library/Caches/CocoaPods stores downloaded pods on a Mac. It is safe to clear with pod cache clean, and pods download again on install.

[← All Mac folders](https://maczentra.com/mac-folders)Mac folder guide

# CocoaPods Cache on Mac: Safe to Delete?

~/Library/Caches/CocoaPods

~/Library/Caches/CocoaPods stores every pod CocoaPods has downloaded for your iOS and macOS projects. It is safe to clear. The next pod install downloads what the project needs.

Safe to deleteSafe to clear with CocoaPods’ own command

## What is CocoaPods cache on a Mac?

CocoaPods keeps a copy of each pod version so it doesn’t fetch it again for every project. The cache grows with every version you have ever used.

It is separate from the Pods folder inside each project, which stays where it is.

## What’s inside

- Pods, cached pod sources by version
- Specs, cached pod specifications

## How to clear CocoaPods cache safely

- Check the size with the first command below.
- Run pod cache clean for every pod.
- Run pod install in a project to confirm it still builds.

Check (read only)

```
du -sh ~/Library/Caches/CocoaPods
```

Clear

```
pod cache clean --all
```

## When to keep it

- Nothing essential. Clear it when you have a connection.

## Related guides

- [Clean Xcode DerivedData](https://maczentra.com/blog/clean-xcode-derived-data)
- [Other developer caches on a Mac](https://maczentra.com/blog/clear-homebrew-pip-gradle-caches-mac)
- [Which Library caches are safe to delete](https://maczentra.com/blog/library-caches-safe-to-delete)

## Questions people ask

Is it safe to delete the CocoaPods cache?+

Yes. pod install downloads pods again when a project needs them.

Does this delete the Pods folder in my project?+

No. Each project’s Pods folder is separate.

Can I just delete the folder in Finder?+

Yes, it is a cache. pod cache clean does the same thing and is easier to remember.

## See which folders fill your Mac

MacZentra, a [disk analyzer and storage cleaner for Mac](https://maczentra.com/), scans your disk locally and draws it as a Treemap or Sunburst, so a folder like this one shows up with its real size. Scanning and every visualization are free. Cleaning is a one-time $49.99 purchase, and anything you remove goes to the Trash, so it can be restored.

[Get MacZentra, ·$49.99](https://checkout.dodopayments.com/buy/pdt_0Np9H2vqU1gHOfkDwU7JZ?quantity=1)

macOS 13 Ventura or later · Apple silicon

Source: https://maczentra.com/mac-folders/cocoapods-cache-mac
