How to Clean Gradle Build Cache & Wrapper Distributions (.gradle\caches)
Location & Quick Verdict
%UserProfile%\.gradle\caches and %UserProfile%\.gradle\daemon
Android Studio and Java/Kotlin builds accumulate multiple gigabytes of old Gradle wrapper versions, build caches, and daemon logs in .gradle.
Why Package Tarballs, Symbol Indexes & Build Artifacts Pile Up in Gradle Build Cache & Wrapper Distributions (.gradle\caches)
Developer toolchains, language package managers, and modern IDEs cache every downloaded dependency version, pre-compiled wheel/crate tarball, C++/Rust incremental build target, and Language Server Protocol (LSP) AST index inside %UserProfile%\.gradle\caches and %UserProfile%\.gradle\daemon. Because dependency lockfiles evolve every week, historical versions from old branches remain cached indefinitely—turning Gradle Build Cache & Wrapper Distributions (.gradle\caches) into a multi-gigabyte graveyard of thousands of small files.
Thousands of small cache entries inside %UserProfile%\.gradle\caches and %UserProfile%\.gradle\daemon also degrade Windows Defender real-time filesystem scanning and slow down backup indexing. Cleaning Gradle Build Cache & Wrapper Distributions (.gradle\caches) reclaims 4.0 GB – 35.0 GB of SSD capacity while preserving your active source code repositories, .env secrets, SSH keys, and workspace configurations.
# Inspect current disk footprint of Gradle Build Cache & Wrapper Distributions (.gradle\caches) (Read-Only)
$target = "$env:USERPROFILE\.gradle\caches"
Get-ChildItem -Path $target -Recurse -Force -ErrorAction SilentlyContinue |
Measure-Object -Property Length -Sum |
Select-Object Count, @{Name="SizeGB";Expression={[math]::Round($_.Sum / 1GB, 2)}}
Manual Cleaning Instructions
- 1 Close Android Studio and run 'gradle --stop' to stop background daemons.
- 2 Navigate to %userprofile%\.gradle.
- 3 Delete old daemon logs and unused transform caches inside .gradle\caches.
Note: If Windows alerts that a file is in use or locked by a background process, close the associated task in Task Manager before deleting, or use SWEEPR Cleaner to release locked handles safely.
Sub-Folders & Cache Locations Breakdown for Gradle Build Cache & Wrapper Distributions (.gradle\caches)
Modern Windows applications and system services split their disk footprint across multiple sub-directories (`Cache_Data`, `Service Worker\CacheStorage`, `Code Cache`, `GPUCache`, and `Crashpad\reports`). Review which sub-folders inside Gradle Build Cache & Wrapper Distributions (.gradle\caches) are safe to purge and which files remain protected:
| Sub-Folder / Cache Location | Storage Role | Typical Footprint | Deletion Safety |
|---|---|---|---|
| %UserProfile%\.gradle\caches | Content-Addressable Package Tarballs, Wheels & Build Artifacts | 4.0 GB – 35.0 GB | 🟢 100% Safe (Re-downloads on Build) |
| %UserProfile%\.gradle\caches\wrapper\dists / _cacache | Historical Toolchain Distributions & Integrity Blobs | 1.5 GB – 15.0 GB | 🟢 100% Safe |
| %UserProfile%\.gradle\caches\logs & crashpad | Compiler Diagnostics, Daemon Logs & Crash Snapshots | 150 MB – 2.5 GB | 🟢 100% Safe |
| Source Repositories, .env Files & SSH/API Keys | Working Git Trees, Local Databases & Credentials | Protected | 🔒 Protected — Never Touched |
Frequently Asked Questions
Is it safe to delete Gradle Build Cache & Wrapper Distributions (.gradle\caches)?
Yes, 100% safe. Safe to clean when Android Studio/IntelliJ is closed. Reclaims up to 35 GB of SSD space.
How much storage space will cleaning Gradle Build Cache & Wrapper Distributions (.gradle\caches) free up?
Users typically reclaim 4.0 GB – 35.0 GB on Windows 10 and Windows 11 systems depending on update frequency and active cache retention in %UserProfile%\.gradle\caches and %UserProfile%\.gradle\daemon.
Will cleaning Gradle Build Cache & Wrapper Distributions (.gradle\caches) break my active local development projects?
No. Installed dependencies inside your project workspaces remain intact. Cleaning Gradle Build Cache & Wrapper Distributions (.gradle\caches) only clears the global download cache and historical build artifacts; any package needed in the future is transparently fetched on demand.
Where is Gradle Build Cache & Wrapper Distributions (.gradle\caches) located on Windows 10 and Windows 11?
It is stored at %UserProfile%\.gradle\caches and %UserProfile%\.gradle\daemon. You can paste that path directly into the Windows Run dialog (Win + R) or File Explorer address bar to inspect it.
Manual File Explorer vs. 1-Click SWEEPR Cleanup
| Feature | Manual Deletion | SWEEPR Cleaner |
|---|---|---|
| Locked File Handling | Fails on locked processes | Safe background release |
| Accidental Deletion Risk | Moderate (easy to delete wrong folder) | Zero (strict rules & hashes) |
| Safety Undo Rollback | None (Shift+Del is permanent) | 7-Day Automatic Rollback |
| Time Required | 10–20 minutes per app | < 60 seconds across 40+ areas |
Related Windows Cleanup Guides & Hidden Space Hogs
Clean Gradle Build Cache & Wrapper Distributions (.gradle\caches) Automatically
SWEEPR Cleaner safely clears Gradle Build Cache & Wrapper Distributions (.gradle\caches) along with 40+ other hidden app folders and leftover files in one click—covering up to 5 devices (Windows, Mac, Android & iOS) with a 7-day undo safety net.