Helpdesk issues and fixes

Disk Full on a Windows Laptop: Find the Space and Get It Back

A full system drive makes everything else fail in strange ways. Outlook stops syncing, Windows Update errors out, Teams will not start, and the user gets a red bar in Explorer and a Low disk space warning they have been dismissing for a week.

The fix is not to delete random things. It is to find out what is using the space, remove the safe stuff in the right order, and then work out why it filled up so it does not happen again next month.

Find what is using the space

Start with Settings > System > Storage. It groups usage into Apps, Temporary files, OneDrive, Documents, Other and so on, and it is enough to spot the obvious. For anything more detailed, a folder-size tool such as WinDirStat or TreeSize Free shows the biggest folders and files at a glance. Run it as administrator so it can see system folders.

Look at the whole drive, not only the user profile. The biggest offenders often sit in C:\Windows, C:\ProgramData or the hidden System Volume Information folder rather than under Users. If you cannot install a tool, the PowerShell below gives you the top-level profile folders by size.

Get-ChildItem C:\Users\jsmith -Directory -Force | ForEach-Object { [pscustomobject]@{ Folder = $_.Name; GB = [math]::Round((Get-ChildItem $_.FullName -Recurse -File -Force -ErrorAction SilentlyContinue | Measure-Object Length -Sum).Sum / 1GB, 1) } } | Sort-Object GB -Descending

The usual space hogs

After a few of these you learn where to look first.

  • Windows.old after a feature update. It is removed automatically after ten days, but you can remove it now with Disk Cleanup > Previous Windows installation(s).
  • The Downloads folder. Installers, ISOs and every attachment ever saved.
  • Outlook OST files under %localappdata%\Microsoft\Outlook. Cached mode with everything downloaded can reach tens of gigabytes.
  • OneDrive with Files On-Demand turned off, or with every folder marked Always keep on this device.
  • Browser and Teams caches, which grow without limit on some builds.
  • hiberfil.sys and pagefile.sys. Hibernation reserves space equal to a large share of RAM.
  • System Restore and shadow copies in System Volume Information.
  • Docker Desktop and WSL virtual disks, which grow and never shrink on their own.
  • Log files from a badly behaved application, and crash dumps in C:\Windows\MEMORY.DMP.
  • A Recycle Bin that has never been emptied.

Safe cleanup steps, in order

Do the built-in, reversible things first. They rarely break anything and they recover a lot.

  1. Settings > System > Storage > Temporary files. Tick Windows Update Cleanup, Delivery Optimization Files, Previous Windows installation(s) and Temporary files, and remove them.
  2. Run Disk Cleanup as administrator (cleanmgr.exe, then Clean up system files) for the older but still useful view of the same items.
  3. Empty the Recycle Bin and clear the Downloads folder with the user's agreement.
  4. Run the component store cleanup below to trim superseded Windows Update files.
  5. In Outlook, File > Account Settings > Account Settings > Change, and reduce Download email for the past to one year or less. The OST shrinks after a compact.
  6. In OneDrive, right-click large folders and choose Free up space.
  7. Turn off hibernation with powercfg /h off only on desktops or laptops that never use it; on most laptops leave it on.
Dism.exe /Online /Cleanup-Image /StartComponentCleanup

When it keeps filling up

If a laptop fills up again a few weeks after a cleanup, something is writing to it. Sort the folder-size tool by date and look for what grew. Common causes are an application logging every request to a file with no rotation, a backup or sync agent keeping local copies, a crash dump written on every blue screen, and a mailbox that simply grows past what the cached OST can hold.

For the mailbox case, the answer is a shorter cache window or an archive policy in Exchange, not repeated cleanups. For logs, ask the application vendor how to rotate them. For virtual disks, shrink them or move them to a second drive.

Stop the ticket coming back

Buy laptops with at least 256 GB of SSD, and 512 GB for anyone who works with video, CAD or large datasets. Turn on Storage Sense through Intune or Group Policy so temp files and the Recycle Bin are cleared on a schedule. Enable OneDrive Files On-Demand by policy and set Known Folder Move so Desktop and Documents live in the cloud and can be freed up.

And set a cached mail window in Outlook policy of a year or less. Nobody needs eight years of mail in the OST, and search on the server finds the older items anyway. If you want those policies rolled out across a fleet, that is standard work for a managed IT provider such as RackLedge.

Frequently asked questions

Is it safe to delete Windows.old?

Yes, as long as the user is happy with the current version of Windows. It exists only so you can roll back a feature update. Remove it through Disk Cleanup or Storage settings rather than deleting the folder by hand.

Can I delete the pagefile or hiberfil to save space?

Do not delete the page file; Windows needs it and crashes will not produce dumps without it. Hibernation can be disabled on machines that never use sleep or hibernate, but on laptops it is usually worth the space.

The drive is full but the folder tool only shows half of it used. Where is the rest?

Run the tool as administrator. The hidden System Volume Information folder, shadow copies and files the user account cannot read are the usual missing pieces.

Takeaway

Measure first, then clean in order: temporary files, update leftovers, Recycle Bin, Downloads, the Outlook cache and OneDrive. Then find what is growing, because a full drive is usually a symptom of something writing to it. Set Storage Sense, Files On-Demand and a mail cache window by policy and the ticket stops repeating.

Related posts

More helpdesk issues and fixes

Need a hand with this?

Tell us what you are running and what is slowing you down. You get a straight assessment and a plan, with no obligation. Support desk is staffed 24/7.

Get in touch