Bottom Line: It is 100% safe to clear ~/.ivy2/cache. The Scala Build Tool (SBT) and Apache Ivy store downloaded JAR dependencies in this folder.
What is the Ivy2 Cache?
Located at ~/.ivy2/cache and ~/.sbt/boot, Scala and Java projects using SBT download dependency JARs into Apache Ivy cache repositories.
Can You Delete Ivy Cache?
✅ Yes, safe to delete.
- Running
sbt compilewill re-download required dependencies into a fresh cache.
How to Clean Up Ivy Cache
rm -rf ~/.ivy2/cache/*
Discussion
Loading authentication...