> Hidden and Library folders on a Mac, one page each: what the folder holds, why it grows, whether it is safe to delete, and the command to clear it.

Mac folder guide

# Mac folders: what they are and what’s safe to delete

Found a big folder and not sure what it does? Each page below says what the folder holds, whether you can delete it, and how to clear it without breaking anything. For the folders most people ask about, see the [Library caches guide](https://maczentra.com/blog/library-caches-safe-to-delete) and [what /var/folders is](https://maczentra.com/blog/what-is-var-folders-on-mac).

- [~/Library/Application SupportPartly safeOnly the folders of apps you no longer use](https://maczentra.com/mac-folders/application-support-folder-mac)
- [~/Library/Saved Application StateSafe to deleteSafe to delete. Apps just open with fresh windows](https://maczentra.com/mac-folders/saved-application-state-mac)
- [~/Library/Mobile DocumentsDon’t deleteDon’t delete files here. Remove the local download instead](https://maczentra.com/mac-folders/mobile-documents-folder-mac)
- [~/Library/CloudStorageDon’t deleteDon’t delete files here. Make them online-only](https://maczentra.com/mac-folders/cloudstorage-folder-mac)
- [~/.cacheSafe to deleteSafe to clear. Tools download what they need again](https://maczentra.com/mac-folders/dot-cache-folder-mac)
- [~/.npmSafe to deleteSafe to clear with npm’s own command](https://maczentra.com/mac-folders/npm-folder-mac)
- [~/.cargo/registryPartly saferegistry is safe to clear, ~/.cargo/bin is not](https://maczentra.com/mac-folders/cargo-registry-mac)
- [~/.m2/repositoryPartly saferepository is safe to clear, settings.xml is not](https://maczentra.com/mac-folders/m2-repository-mac)
- [~/Library/Caches/CocoaPodsSafe to deleteSafe to clear with CocoaPods’ own command](https://maczentra.com/mac-folders/cocoapods-cache-mac)
- [~/Library/Caches/go-buildSafe to deleteSafe to clear with Go’s own command](https://maczentra.com/mac-folders/go-build-cache-mac)
- [__pycache__Safe to deleteSafe to delete. Python recreates them](https://maczentra.com/mac-folders/pycache-folder-mac)
- [.venvPartly safeSafe if you can rebuild it from the project’s requirements](https://maczentra.com/mac-folders/venv-folder-mac)

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