Skip to content
Back to the journal

My programs ·

JunkCleanup: where the disk space really goes

Why caches in the Recycle Bin free nothing, how one locked file stopped a whole clean, and what version 1.0.1 changes as of 30 November.

JunkCleanup: the Disk page showing where the space goes

Why this program exists

Windows Settings says "Installed apps: 107 GB" and leaves you guessing where the space went. Most of it is browser caches, package manager caches, shader caches, old installers and firmware downloads that rebuild themselves. JunkCleanup clears them on Windows, macOS and Linux. Every target carries a level, Safe, Moderate or Careful, with one line on what deleting it costs. The interface comes in 19 languages.

What was hard

At first, caches on Windows went to the Recycle Bin. That freed nothing, and the space came back as "System" junk that never cleaned. In commit f9c2074 from 4 November, caches and temporary files are deleted for good, as CCleaner, BleachBit and Disk Cleanup do. The Recycle Bin setting now covers only what you remove by hand, and the bin has its own line.

A second bug came with it: the Windows shell aborts a recycle batch at the first file it cannot move. Since then the remaining files are retried one by one. A regression test covers it.

Linux was the honest gap. No Linux machine was at hand, so everything ran in an Ubuntu 24.04 (arm64) virtual machine. The README says so.

What version 1.0.1 changes

Version 1.0.1 from 30 November (commit 45c2c92):

  • On the Disk page, Clean cleans exactly what the page shows instead of jumping to the Dashboard.
  • macOS: the free space is the real free space, with purgeable space shown beside it. With "Shuffle all Aerials" on, macOS downloads every Aerial video. A tip removes the unused ones with one administrator prompt and keeps the one on screen.
  • All three apps: Chrome's on-device AI model (Gemini Nano, about 4 GB) shows on the disk map and as a tip. Removing it also sets Chrome's GenAILocalFoundationalModelSettings policy where the user may, so Chrome does not download it again.

Sources on GitHub