Yep, Disk Cleanup Just Broke Something
You ran Disk Cleanup, clicked "Clean up system files," checked all the boxes, and now an app won't open or keeps throwing errors. Maybe it's Photoshop, maybe it's a game, maybe some old business software. The real reason? Disk Cleanup's "Compression for Old Files" feature didn't just compress files—it deleted them.
The Quick Fix: Turn Off Compression for Old Files
Here's how to stop Disk Cleanup from messing with your app files:
- Press the Windows key, type Disk Cleanup, and click the app.
- Select the drive where Windows is installed (usually C:) and click OK.
- Click the Clean up system files button. You'll see a new list of checkboxes.
- Look for Compression for Old Files in the list. By default, it's checked. Uncheck it.
- Now click OK to run the cleanup, but with that option disabled. After clicking OK, you should see a confirmation dialog asking "Are you sure you want to permanently delete these files?"—click Delete Files.
- Restart your computer.
After the restart, try opening the app that was broken. If it still doesn't work, you'll need to reinstall that specific app. But going forward, Disk Cleanup won't delete those files again.
Why Does "Compression for Old Files" Delete App Files?
Here's the thing: Microsoft designed this option to find files you haven't used in a while and compress them to save space. But the algorithm isn't perfect. It can't always tell the difference between a file you haven't opened in 6 months (like an old tax PDF) and a DLL file that Windows needs to run a printer driver or a game launcher.
When Disk Cleanup compresses those files, the apps that rely on them can't access them anymore. In some cases, the compression process itself corrupts the file, or the file ends up in a hidden system folder where the app can't find it. The fix isn't to avoid Disk Cleanup entirely—just skip that one checkbox.
I've seen this on Windows 10 version 22H2 and Windows 11 versions 21H2 through 23H2. It happens more often with older software that wasn't written for Windows 10 or 11, like programs from 2012 or earlier.
Less Common Variations of This Problem
1. Storage Sense Also Does This
Storage Sense is Windows' automated cleanup tool. If you have it turned on, it can also compress old files. To check:
- Go to Settings > System > Storage.
- Click Storage Sense.
- Under Automatic User Content Cleanup, find the option labeled Delete files in the Downloads folder that haven't been changed for over X days. Most people leave this off for a reason—it can accidentally remove installers you still need.
- Also, look for Compress files that haven't been opened for over X days. Set this to Never.
After making those changes, Storage Sense won't touch your app files.
2. Third-Party Cleaners Like CCleaner
If you use CCleaner or Wise Disk Cleaner, they often have a similar option called "Old Files" or "Disk Compression." In CCleaner, go to Custom Clean > Advanced and uncheck Old Prefetch data and Old Files. These tools don't always tell you what they're removing—they just say "safe to delete." But safe for Windows isn't always safe for your apps.
3. What If the App Files Are Already Gone?
If you already ran Disk Cleanup with Compression for Old Files checked and now an app is broken:
- Try System Restore. Go to Control Panel > Recovery > Open System Restore, and pick a restore point from before you ran Disk Cleanup. After the restart, your files should be back.
- If System Restore isn't available, reinstall the app. Save any data files first, then uninstall the app and install it again from the original source.
- For games on Steam, right-click the game in your library, go to Properties > Installed Files > Verify integrity of game files. Steam will download any missing files.
How to Prevent This from Happening Again
The simplest thing: never check "Compression for Old Files" in Disk Cleanup. That's the main fix. Here's a checklist you can follow:
- Before running Disk Cleanup, always click Clean up system files and uncheck Compression for Old Files.
- Set Storage Sense to never compress files. Instructions are in section 1 above.
- If you use a third-party cleaner, review every checkbox and uncheck anything related to old files or compression.
- Keep a list of your installed apps handy. If Disk Cleanup breaks something, you'll know exactly what got hit.
- Run Disk Cleanup once a month, but never with Compression for Old Files. Windows will still clear temp files, cache, and Recycle Bin—those are safe.
One last tip: If you don't need to save disk space urgently, skip the whole "Clean up system files" button. Just run the regular Disk Cleanup without it. The regular version only touches temp files, log files, and Recycle Bin—things you actually don't need. System files cleanup is where the trouble hides.