Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Why Is System Taking So Much Disk Space & How to Fix

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If your system drive is filling up for no obvious reason, the usual culprits are Windows Update cache, temporary files, hibernation file, system restore points, and hidden page files. The quickest fix is to run the built-in Disk Cleanup tool, then remove the hibernation file if you don't use it, and finally check for large files with a free disk space analyzer. Below is a step-by-step guide that works on Windows 10 and Windows 11 (labels may differ slightly by version).

What You'll Need

  • Administrator access to your Windows PC (you'll need it for some steps).
  • About 15 minutes of time.
  • Optional: a USB drive or external drive to back up important files before making system changes.

Step-by-Step

  1. Open Disk Cleanup. Press the Windows key, type "Disk Cleanup", and select the app. Choose your system drive (usually C:) and click OK.
  2. Run the basic cleanup. Wait for the scan, then check all boxes in the list (especially "Temporary files" and "Windows Update Cleanup"). Click OK and then "Delete Files" to remove them.
  3. Use Storage Sense (Windows 10/11). Go to Settings > System > Storage. Turn on Storage Sense if it's off, then click "Clean now" or "Free up space now". Check the boxes for temporary files, recycle bin, and previous Windows installations if present, then click "Remove files".
  4. Check for the hibernation file. The hibernation file (hiberfil.sys) can be several GB. If you never use Hibernate, open Command Prompt as Administrator (right-click Start > Command Prompt (Admin) or Windows Terminal (Admin)) and type: powercfg /h off and press Enter. This removes the file and disables hibernation. (If you want to keep hibernation, skip this step.)
  5. Reduce system restore space. Right-click Start > System > System Protection (or go to Control Panel > System > System Protection). Select your system drive, click "Configure", and move the slider to a lower value (e.g., 5% instead of 10%). Click "Delete" to remove existing restore points if you're okay with losing them, then Apply.
  6. Move or disable the page file (optional). The page file (pagefile.sys) uses a few GB. If you have plenty of RAM (16GB+), you can set it to a smaller size or move it to another drive. Go to Settings > System > About > Advanced system settings > Performance Settings > Advanced > Virtual memory > Change. Uncheck "Automatically manage", select the system drive, choose "Custom size", set Initial and Maximum to a lower value (e.g., 1024 MB), or select "No paging file" if you're confident (not recommended for low RAM). Click Set, then OK and restart.
  7. Find large files and folders. Download a free disk space analyzer like WinDirStat or TreeSize Free (from official websites only). Run it on your system drive to see which folders are taking the most space. Common offenders include C:\Users\[YourName]\AppData (especially Local\Temp and Local\Packages), C:\Windows\Installer, and C:\ProgramData.
  8. Clean up the WinSxS folder (Windows component store). Open Command Prompt as Administrator and run: Dism.exe /Online /Cleanup-Image /StartComponentCleanup. This safely removes old versions of Windows components. It can take a while but is safe.
  9. Empty the Recycle Bin. Right-click the Recycle Bin and choose "Empty Recycle Bin".
  10. Restart your PC. After all changes, restart to free up any locked files.

Common Mistakes

  • Deleting files from C:\Windows\System32 or other system folders manually—this can break Windows.
  • Disabling hibernation without knowing you use it—you'll lose the ability to hibernate (but you can re-enable it with powercfg /h on).
  • Deleting restore points without realizing you might need them to recover from a bad update.
  • Using third-party "cleaner" apps that promise to free space but may remove needed files or bundle malware.

Tips

  • Run Disk Cleanup and Storage Sense monthly to keep space in check.
  • If you have a small SSD, consider moving your user folders (Documents, Downloads, Pictures) to a secondary drive via Settings > System > Storage > Advanced storage settings > Where new content is saved.
  • Uninstall unused applications via Settings > Apps > Installed apps, and use the "Sort by size" option to see the biggest ones.
  • Check if Windows Update has a pending update that might be downloading large files—install it to clear the cache.
  • If you use cloud storage (OneDrive, Google Drive), consider making files "online-only" to free local space.

Troubleshooting

If the above steps don't free enough space, try these in order:

  • Restart your PC—some temporary files are locked and only get removed after a reboot.
  • Run Disk Cleanup as Administrator (right-click > Run as administrator) to see additional options like "Windows Update Cleanup" and "Previous Windows installations".
  • Check for large system restore points—if you have many, delete all but the most recent.
  • Look for a Windows.old folder (if you upgraded from an older Windows version). It can be several GB. Use Disk Cleanup > "Previous Windows installation(s)" to remove it.
  • If Disk Cleanup hangs, close it, restart, and try again. If it still hangs, run sfc /scannow in Command Prompt as Administrator to repair system files.
  • If the system drive is still full after all this, you may have a hidden file like swapfile.sys or a large hiberfil.sys that didn't get removed—check with a disk analyzer.

Frequently Asked Questions

Why is my C: drive full even after deleting files?

Deleted files often go to the Recycle Bin, which still occupies space. Also, system files like the page file, hibernation file, and restore points are hidden and can take many GB.

Is it safe to delete the hibernation file?

Yes, if you don't use Hibernate. It only saves your session to disk when you hibernate; disabling it removes the file and frees space. You can re-enable it later with powercfg /h on.

What is the WinSxS folder and can I delete it?

WinSxS stores Windows component files. You should not delete it manually—use the DISM command shown above to safely clean it.

How do I know which files are taking the most space?

Use a disk space analyzer like WinDirStat or TreeSize Free. They show a visual breakdown of what's using your drive.

Can I move the page file to another drive?

Yes, in Virtual Memory settings you can select a different drive for the page file. This frees space on your system drive, but performance may vary depending on the other drive's speed.

Will cleaning up disk space slow down my PC?

No, removing temporary files and old updates usually speeds things up. Deleting restore points only removes recovery options, not performance.