# Is it safe to delete the Swift Package Manager cache?

- URL: https://moreroom.app/folders/swiftpm-cache
- Item: Swift Package Manager cache
- Location: `~/Library/Caches/org.swift.swiftpm`
- Verdict: Safe to remove — Rebuilt or re-downloaded automatically when needed.
- Comes back on its own: yes
- Source: MoreRoom rules catalogue (2026-10-17), by Yando Pte. Ltd.

## What is it?

Swift Package Manager keeps a shared cache in `~/Library/Caches/org.swift.swiftpm`: clones of the Git repositories of your package dependencies, downloaded binary artifacts (XCFrameworks) and cached package manifests. Xcode and the `swift` command both use it, and it grows as you add dependencies to projects.

## What happens if you delete it?

Packages are fetched again from their repositories the next time a project resolves its dependencies, which takes time and bandwidth. Your `Package.resolved` files and project code are not affected.

## How to remove it properly

Run `swift package purge-cache` in Terminal, which empties the shared repository cache with Swift’s own tool, or quit Xcode and move the folder to the Trash. Xcode’s File › Packages › Reset Package Caches only resets the current project’s copies.
