Guide · Windows
Windows disk cleanup: how to free up disk space on Windows 11 and 10
Your C drive is nearly full and Windows keeps telling you so. Here is where the space goes, the built-in tools that get it back, and the folders you should never delete by hand.
The short answer
A Windows disk cleanup starts in Settings > System > Storage, where Windows shows what's using space and offers to remove temporary files and system files you no longer need. Then turn on Storage Sense so it keeps cleaning on its own.
- Open Settings > System > Storage to see what's using space.
- On Windows 11, go through Cleanup recommendations and select Clean up.
- Open Temporary files and remove what you don't need.
- Turn on Storage Sense and choose how often it runs.
- Empty the Recycle Bin, uninstall apps you don't use, and clear out big files in Downloads.
How to see what's using space on Windows
Before you delete anything, find out where the space went. Windows sorts your drive into categories for you.
- Select Start > Settings > System > Storage.
- Wait for the numbers to settle. Windows breaks down the space on your system drive, usually C:, into categories such as apps and Temporary files. Select a category to see what's in it.
- For a quick total, open File Explorer and select This PC. Free space shows under Devices and drives.
These tools look at your system drive. Storage Sense works on the drive Windows is installed on, usually C:. For your other drives, go to Settings > System > Storage > Advanced storage settings > Storage used on other drives.
How to free up disk space on Windows, step by step
Work through these in order. The first steps are built into Windows and are the safest.
1. Use Cleanup recommendations (Windows 11)
Windows 11 gathers the easy wins in one place.
- Go to Start > Settings > System > Storage > Cleanup recommendations.
- Review each category: Temporary files, Large or unused files, Files synced to the cloud and Unused apps.
- Select the items you want gone, then select Clean up for each section.
Windows suggests files for you and shows how much space each choice will save before you commit.
2. Clear temporary files in Settings
Apps keep temporary information while they work and usually tidy it up when they're done. Not always. After an upgrade, your previous Windows installation shows up here too.
- Go to Start > Settings > System > Storage.
- Under your drive's usage, select Temporary files.
- Tick the items you want removed, then select Remove files.
Read the description under each item before you tick it, and skip anything you may still want.
3. Turn on Storage Sense and schedule it
Storage Sense is Windows' own automatic disk cleanup. It's off by default. If your PC runs low on space and you've never touched it, Windows may turn it on to clear some temporary files, and it will tell you when it does.
- Go to Start > Settings > System > Storage and set Storage Sense to On.
- Select Storage Sense to open its settings.
- Under Run Storage Sense, choose how often it runs.
- Under the Recycle Bin and Downloads options, choose how long files can sit there before they're deleted.
With the default settings, Storage Sense runs when your drive is low on space. It leaves your Downloads folder and cloud files alone unless you pick a time for them. It only runs while you're signed in and have been online for more than 10 minutes.
4. Run Disk Cleanup for system files
Disk Cleanup (cleanmgr.exe) is the classic Windows disk cleanup tool, and it still ships with Windows 11. As of October 2026 it isn't on Microsoft's list of deprecated Windows features, though Microsoft's Windows 11 help now points you to Cleanup recommendations and Storage Sense instead. Some Microsoft pages still send you to it, for example to clear Delivery Optimization Files.
- In the search box on the taskbar, type disk cleanup and select it. You can also press Windows R, type
cleanmgrand select OK. - Choose your drive, usually C:, and select OK.
- Tick the types of files to delete. Select a name to read what it is. By default, Downloaded Program Files, Temporary Internet Files and Thumbnails are ticked.
- To go further, select Clean up system files, choose the drive again and select OK. Windows works out what it can remove and adds system items to the list, including the option to clean up old Windows updates, which shrinks the component store.
- Select OK, then Delete files to confirm.
5. Remove Windows.old after an upgrade
After a major upgrade, Windows keeps your previous installation in a folder called Windows.old, so you can go back if something isn't right. It deletes it automatically 10 days after the upgrade. If you're happy with the new version and need the space sooner:
- Go to Start > Settings > System > Storage and select Temporary files.
- Tick Previous Windows installation(s) and select Remove files.
You'll need an administrator account. This can't be undone: once it's gone, you can't roll back to your previous version of Windows. The same item also shows up in Disk Cleanup after you select Clean up system files.
6. Empty the Recycle Bin
Deleting a file in File Explorer only moves it to the Recycle Bin, where it still takes up space. Open the Recycle Bin first and restore anything you deleted by mistake. Then right-click the Recycle Bin on your desktop and choose Empty Recycle Bin. Storage Sense can do this for you on a schedule.
7. Uninstall apps you don't use
- Select Start > Settings > Apps > Installed apps.
- Find the app you want to remove, then select More > Uninstall.
Some older programs can't be removed this way. For those, search the taskbar for Control Panel, go to Programs > Programs and Features, right-click the program and select Uninstall or Uninstall/Change.
8. Find big files in Downloads and elsewhere
Downloads is where installers, archives and videos pile up. Microsoft notes that the Videos, Music, Pictures and Downloads folders usually hold the largest files you've saved.
- Sort a folder by size. Open it in File Explorer, select View > Details, then right-click an empty spot and choose Sort by > Size. On Windows 10, Details is on the View tab. The biggest files move to the top.
- Search a whole drive. Open This PC or C: in File Explorer and type
size:giganticin the search box. That's the largest of File Explorer's preset size filters. For your own cutoff, type something likesize:>500mb. Search looks in the folder you have open and every folder inside it.
Delete what you don't need, or move it to a USB drive or SD card. To keep the drive from filling again, you can send new files elsewhere from Settings > System > Storage > Advanced storage settings > Where new content is saved.
9. Make OneDrive files online-only
If you use OneDrive, Files On-Demand lists all your files in File Explorer without keeping full copies on your PC. It's on by default in recent versions of OneDrive.
- To free space, right-click a file or folder in your OneDrive folder and choose Free up space. It becomes online-only, shows a blue cloud icon, and downloads again when you open it.
- Choose Always keep on this device for anything you need offline.
- If Files On-Demand is off, select the OneDrive cloud icon in the notification area, open Settings, go to the Sync and back up tab, expand Advanced settings and turn on Files On-Demand.
Storage Sense can also make cloud files online-only when you haven't opened them for a while. Starting with Windows 11, version 22H2, the default for OneDrive files is 30 days.
Free up space, don't delete. Deleting an online-only file from your PC deletes it from OneDrive on every device and online. Free up space only removes the local copy.
10. Clear browser caches
Browsers keep copies of pages and images so sites load faster, and that cache keeps growing. In Microsoft Edge:
- Select Settings and more > Settings > Privacy, search, and services.
- Under Clear browsing data, select Choose what to clear.
- Pick a Time range, tick Cached images and files and select Clear now.
Chrome and Firefox have the same option in their privacy settings. Leave cookies unticked unless you want to be signed out of websites. Browsers rebuild their cache as you browse, so this space slowly comes back.
Advanced: shrink system files from the command line
These two take a few commands. Both run from an elevated Terminal: press Windows X and choose Terminal (Admin), then approve the User Account Control prompt. On some PCs the entry reads Windows Terminal (Admin) or Windows PowerShell (Admin); either works.
Clean up the component store (WinSxS)
C:\Windows\WinSxS is the component store. It holds the pieces Windows is built from, plus older versions kept so changes can be rolled back. Windows cleans it up on its own over time. File Explorer also overstates its size, because many files in it are hard links that appear elsewhere in Windows too. To see the real size, run:
DISM /Online /Cleanup-Image /AnalyzeComponentStore
If the result says Component Store Cleanup Recommended : Yes, run:
DISM /Online /Cleanup-Image /StartComponentCleanup
This removes older versions of updated components right away, instead of after the 30 days the built-in scheduled task waits. It can take a while, so let it finish.
Other guides sometimes add /ResetBase. That removes every superseded version, but afterwards you can't uninstall any update that's already installed. Most people should skip it.
Turn off hibernation, if you never use it
Windows keeps a hidden file, hiberfil.sys, at the root of your system drive. It holds a copy of memory when your PC hibernates, and its size scales with how much memory (RAM) your PC has. If you never hibernate, you can remove it:
powercfg /hibernate off
Know the trade-off first. Your PC can no longer hibernate, and hybrid sleep stops working, so on a desktop that uses it, a power cut during sleep can lose unsaved work. Fast startup uses the same file, so it turns off too, and starting your PC after a shutdown may take longer. To undo it, run powercfg /hibernate on.
Want to keep fast startup? powercfg /hibernate /type reduced keeps a smaller file that only supports fast startup.
What not to delete on your C drive
Some of the biggest things on your drive look like clutter but hold what Windows needs. Leave these alone:
C:\Windows\WinSxSby hand. Deleting files from it can leave your PC unable to start or update. Use the DISM cleanup above instead.C:\Windows\System32. It holds the core of Windows itself.C:\Program FilesandC:\Program Files (x86). Your installed apps live here. Remove apps through Settings so their uninstaller runs, rather than deleting their folders.pagefile.sys. The page file lets Windows move memory to disk and supports crash dumps. Windows manages its size for you.hiberfil.sys. If you want it gone, usepowercfgas shown above, not the Delete key.
Registry cleaners won't get you disk space back. The registry is a database of settings, not where your space goes, so cleaning it frees nothing you'd notice. Microsoft doesn't support registry cleaners: its support policy (KB 2563254) warns that the changes they make can leave Windows unstable enough to need a reinstall.
The fast way: let Safai do it
On Windows, Safai's Smart scan finds your temp files in %LOCALAPPDATA%\Temp, the Chrome, Edge and Firefox caches, and npm, pnpm and Cargo caches. It shows everything biggest first, and Wash it all away clears it in one click. Disk map shows your folders as bubbles sized by what they hold, Large and old finds big files you haven't opened in months, and Duplicates checks every byte.
Nothing is deleted outright: it all waits in Safai Trash until you empty it, and you can put any of it back. It never touches your software projects, OneDrive, Dropbox or Google Drive folders, backups or app files, and it doesn't clean the registry, on purpose. Windows.old, the Recycle Bin and the component store stay yours to clear with the steps above.
$29.99 once with two years of updates, for Windows 10 or 11 (64-bit) and Mac. No account, no ads, no subscription.
Get Safai, from $29.99Questions
Is Disk Cleanup still in Windows 11?
Yes. As of October 2026, Disk Cleanup still ships with Windows 11 and is not on the Microsoft list of deprecated Windows features. Microsoft help for Windows 11 points to Cleanup recommendations and Storage Sense in Settings instead. Cleanup recommendations can remove temporary files and system files too.
How do I clear my C drive without deleting important files?
Start with what Windows offers in Settings, under System and then Storage: Cleanup recommendations, Temporary files and Storage Sense. Then empty the Recycle Bin, uninstall apps you no longer use and move big files out of Downloads. Never delete files inside the Windows or Program Files folders by hand.
Is it safe to delete the Windows.old folder?
Yes, once you are sure you want to stay on your current version of Windows. It holds your previous installation so you can go back. Windows deletes it by itself 10 days after an upgrade, and removing it sooner means you can no longer roll back.
Does Storage Sense delete my personal files?
Only if you tell it to. With the default settings it clears temporary files when space runs low and removes old items from the Recycle Bin. Your Downloads folder and cloud files are left alone unless you choose a time limit for them, and making cloud files online-only never deletes them.
Do registry cleaners free up disk space?
Not in any way you would notice. The registry is a database of settings, not where your space goes. Microsoft does not support registry cleaners, and its support policy warns that the changes they make can leave Windows unstable enough to need a reinstall.
Why does my C drive keep filling up?
Usually a mix of temporary files, apps and games, big downloads and videos, and after a major upgrade, the previous Windows installation. Open Storage in the System section of Settings to see which category is biggest on your PC, then start there.