Windows Guide

Freeing Up Disk Space on Windows 11 Without Breaking Anything

The low disk space warning always shows up at a bad moment, usually halfway through a game download or a Windows update. The usual reaction is to start deleting things that look big, which is how people end up deleting WinSxS or half of AppData and then spending an evening repairing Windows.

There's a calmer way. Find out what is actually using the space first, clear the parts Windows can safely regenerate, and only then decide what to move or uninstall.

Step one: see where the space went

Go to Settings → System → Storage. Windows takes a few seconds to scan and then shows a breakdown: apps, temporary files, documents, pictures, "Other" and so on. Click Show more categories to see everything. It's coarse, but it tells you whether you're dealing with apps, media or system files.

For a real picture, use a disk visualiser. WizTree and WinDirStat are both free. WizTree is much faster because it reads the NTFS master file table directly instead of walking every folder, so a full scan of a 1 TB drive takes seconds. Sort by size and the culprits are usually obvious within a minute: a forgotten video export, a Downloads folder with five years of installers, or a game you finished two years ago.

The safe cleanup tools

Temporary files

In the Storage page, open Temporary files. Windows lists what it can remove and how much space each item takes. Most of it is safe to tick:

  • Windows Update Cleanup: old copies of updated system files. Once updates have installed successfully, these are only needed if you want to uninstall an update.
  • Delivery Optimization Files: update chunks Windows keeps to share with other PCs. Safe to remove.
  • Temporary files and Thumbnails: rebuilt automatically as needed.
  • Previous Windows installation(s): the Windows.old folder after a feature update, often 10–20 GB. Remove it only once you're sure you won't roll back. Windows deletes it by itself after about ten days anyway.

Read the Downloads checkbox before you click Remove. It's in that same list, and it deletes your whole Downloads folder. That one catches people every time.

Storage Sense

On the same Storage page, Storage Sense can run this cleanup automatically. Turn it on and open its settings: you can choose to empty the Recycle Bin after 30 days and clean temporary files regularly. I'd leave the Downloads option on Never unless you treat that folder as truly temporary.

Component store cleanup

The C:\Windows\WinSxS folder looks enormous, but Explorer overstates its size because most files in it are hard links to files that also live in System32. Never delete anything there by hand. If you want to trim it properly, run this in an administrator Terminal:

Dism.exe /Online /Cleanup-Image /StartComponentCleanup

It removes superseded component versions and is safe. It may take a while and the gain is usually a few gigabytes, not tens.

The big ones you control

Hibernation file

hiberfil.sys in the root of C: can be several gigabytes, often around 40% of your RAM. If you never use Hibernate and don't care about Fast Startup, you can turn it off with powercfg /hibernate off in an administrator Terminal. On laptops I'd keep it: hibernation is what saves your session when the battery runs flat.

Page file

pagefile.sys is also large and also tempting. Leave it alone. Shrinking or disabling it lowers the amount of memory Windows can commit, which causes crashes under load. Our memory guide explains why.

System Restore

Restore points live in a hidden folder and can take up a fixed share of the drive. Search for Create a restore point, select the C: drive, click Configure and look at the usage slider. Five percent is plenty for most people. Don't turn it off entirely; restore points have saved a lot of PCs from bad drivers.

Games and launchers

Modern games are 50–150 GB each. Steam, Epic and the Xbox app can all move a game to another drive without re-downloading it. In Steam that's Properties → Installed Files → Move install folder. If you have a second drive, put games there and keep C: for Windows and apps.

Developer caches

If you write code, check these, because they grow quietly: node_modules folders in old projects, the npm cache (npm cache clean --force), pip's cache (pip cache purge), Docker images (docker system prune), and Android emulator images. A forgotten Docker setup alone can hold 30 GB.

Folders you should never delete by hand

  • C:\Windows and anything inside it, including WinSxS, Installer and System32.
  • C:\Program Files folders of apps that are still installed. Uninstall the app instead, otherwise Windows keeps a broken entry.
  • C:\ProgramData, which holds settings and licences for installed apps.
  • AppData folders of apps you still use. It's where your browser profile, saved games and app settings live.

When it keeps filling up

If space disappears again within days, something is writing a lot. In Resource Monitor (resmon), the Disk tab shows which processes are writing which files right now. Common causes are a backup or sync app with a misconfigured folder, a log file growing without limit, crash dumps from a misbehaving app, or browser caches set unusually large.

And if your C: drive is a small SSD from a few years ago, the honest fix may be a bigger drive. A 1 TB NVMe SSD costs less than it ever has, and cloning your existing drive onto it with the manufacturer's free migration tool takes about an hour. That ends the cleanup routine entirely.