Free up disk space and delete temporary files
Windows can find and delete temporary files, old update files and the Recycle Bin for you. Start with Cleanup recommendations, turn on Storage Sense so it happens automatically, and use Disk Cleanup for system files.
- Time
- 5 to 15 minutes
- Level
- Easy
- You need
- An administrator account to clean up system files.
Before you start
- Check what uses the space first: Settings > System > Storage shows it by category.
- Some cleanup options can empty the Recycle Bin and your Downloads folder. Look at what is checked before you confirm.
Windows 11
Steps written for Windows 11 (screenshots: 26H2).
Open Storage settings
Select Start > Settings > System > Storage. The top of the page shows how full the drive is and what uses the space.
Open Cleanup recommendations
Under Storage management, select Cleanup recommendations.

Settings, System, Storage: Cleanup recommendations is under Storage management. Screenshot: Windows 11 26H2 Clean up what Windows suggests
Open each group (Temporary files, Large or unused files, Files synced to the cloud, Unused apps), check the items you do not need and select Clean up in that group.

Cleanup recommendations groups the suggestions; on our test PC there was nothing to clean yet. Screenshot: Windows 11 26H2 Delete more temporary files
Go back to Storage and select Temporary files. Windows lists the types it can remove with their size. Check the ones you do not need and remove them. Leave Downloads unchecked unless you have checked that folder.
Turn on Storage Sense
Back on Storage, turn the Storage Sense switch on. Windows then deletes temporary files on its own when the drive runs low.
Choose what Storage Sense cleans
Select Storage Sense to open its page. Check the box for cleaning temporary files, then choose when it runs and how long files may stay in the Recycle Bin and Downloads before they are deleted.

Storage Sense: schedules for the Recycle Bin and Downloads, and Run Storage Sense now. Screenshot: Windows 11 26H2 Run it now
Select Run Storage Sense now at the bottom of the page.
Clean up system files with Disk Cleanup
Type disk cleanup in the search box on the taskbar and open Disk Cleanup. Choose drive C: and select OK, then select Clean up system files and choose C: again.

Disk Cleanup: Clean up system files adds Windows Update and other system files to the list. Screenshot: Windows 11 26H2 Delete the files
Check the types of files you want to remove (select a name to see what it is), select OK, then Delete files.
Windows 10
Steps written for Windows 10 22H2.
Microsoft ended support for Windows 10 on October 14, 2025. Storage Sense and Disk Cleanup still work.
Open Storage settings
Select Start > Settings > System > Storage.
Turn on Storage Sense
Turn the Storage Sense switch on. Open its settings on the same page to choose what it deletes and to run it now.
Open Disk Cleanup
Type disk cleanup in the search box on the taskbar, select it, choose drive C: and select OK.
Add system files
Select Clean up system files, choose C: and select OK.
Delete the files
Check the types of files you want to remove, select OK, then Delete files.
Empty the Temp folder by hand (Windows)
- Press Windows + R, type the line below and press Enter:
%temp% - Press Ctrl + A to select everything, then press Delete.
- If Windows says a file is in use, select Skip. Those files belong to programs that are running.
- Empty the Recycle Bin.
Windows.old and the previous version of Windows
For a few days after a Windows upgrade, Cleanup recommendations and Disk Cleanup offer to delete the previous version of Windows (the Windows.old folder). It is large, but once deleted you cannot go back to the earlier version. Delete it only when the new version works well.
If the drive is still full
- Uninstall programs you no longer use: Uninstall a program or app in Windows.
- Move photos, videos and other large files to an external drive, or keep them in OneDrive with Files On-Demand turned on so they stay online until you open them.
- Choose another drive for new files: Settings > System > Storage > Advanced storage settings > Where new content is saved.
- If the space fills up again quickly for no clear reason, scan the PC for malware.
Used in 124 guides
How to fix "0x8096002A: No error description available" in Windows?
How to fix Event ID 161 Volmgr error in Windows 11 and 10
How to fix Modern Setup Host high CPU usage in Windows 10 and 11?
How to fix Windows update stuck on "Working on updates"?
How to fix "We can't get to this file right now because computer syncing is paused"?
Bluebook not opening on Windows: fix "An unexpected error has occurred"
How to fix ZIP or RAR files extracting slowly in Windows 11?
How to fix the FAST_ERESOURCE_PRECONDITION_VIOLATION blue screen (0x1C6) in Windows
How to fix 0x80070102 error when playing games on Windows?
How to fix Exception on Invalid Stack Black Screen error in Windows?
How to fix "Download failed" error on Brave browser?
How to fix Windows update error 0x8007370D?
[Fix] 22H2 Windows 11 update fails with error 0x8007001F-0x3000D
How to fix 0x800f0821 error when installing optional features in Windows?
How to fix Windows update error 0x800706ba?
How to fix Windows update error 0x8007065e?
How to fix Windows update error 0x80071160?
How to fix ".exe has stopped working" error on Windows 10 and Windows 11?
How to fix Windows update error 0xc190011f?
How to fix Windows upgrade error 0x80070004 - 0x2000D?
How to fix 0x81000001 error when creating backup in Windows?
How to fix Windows update error 0x800705b9?
How to fix Xbox app error 0x87e0000f in Windows?
How to fix Windows Error Code 0x800706BE?
How to fix Xbox app error code 0x87e00004 in Windows?
How to fix "File record segment is unreadable"?
How to fix Microsoft Store error 0x80073D21 in Windows?
How to fix Game Bar recording error 0x82323619 in Windows?
How to fix Windows update error 0x80020010?
How to fix "Error 0x800701AA: The cloud operation was not completed" in Windows?
How to fix Windows 11 installation error 0xC1900101 - 0x40017?
How to fix Xbox app error 0x80073CF9 in Windows?
How to fix Windows backup failed error 0x80780166?
How to fix "Please insert the external storage media and press OK" error in Windows 10?
How to fix Media Creation Tool error 0x80070005 - 0xA001B in Windows?
How to fix PhotoCaptureFileCreationFailed camera error in Windows?
How to fix Windows Update error 0x80d05001
How to fix Windows update error 0x80240022?
How to fix "Error 1628: Failed to complete installation" error in Windows?
How to fix Microsoft Office error 0-2031 in Windows?
How to fix Windows installation error 0x80070002 - 0x20009?
How to fix Windows update error 0x8024a203?
How to fix Windows update error 0xC80003FA?
How to fix Windows update error 0xc1900104?
How to fix Windows update error 0xc8000444?
How to fix Windows update error 0xC1900200?
How to fix Windows update error 0x80070050?
How to fix Windows Error Reporting Event ID 1001?
How to fix Microsoft Office error 30033-44 in Windows?
How to fix Microsoft Office installation error 30016-22 in Windows?
How to fix Windows update error 0x800f0806?
How to fix Microsoft Office error 30088-4 in Windows?
How to fix Windows update error 0x800B0003?
How to fix KB5007651 fails to install on Windows?
How to fix KB5057056 fails to install in Windows 10?
How to fix Microsoft Office error code 147-0 in Windows
How to fix KB890830 fails to install in Windows?
How to fix 0x87e00005 Xbox app error in Windows?
How to fix SAFE_OS phase error during REPLICATE_OC operation in Windows 10?
How to fix Windows upgrade error 0x8007007f?
How to fix Windows 11 24H2 update fails to install?
How to fix KB5058499 fails to install in Windows 11?
How to fix KB5060999 fails to install in Windows 11?
How to fix Microsoft Store error 0x87E00198?
How to fix Runtime error 7: Out of memory in Windows?
How to fix Windows 11 upgrade error 0x80070002 - 0x20007?
How to fix Windows Update error 0x8007041D?
How to fix Couldn't start Files on Demand error code 0xffffffea in OneDrive?
How to fix OneDriveSetup.exe - Entry Point not Found error in Windows?
How to fix KB5060842 fails to install in Windows 11?
How to fix 0x8024200B error on Windows?
How to fix Windows update error 0x800f8011?
How to fix KB5060533 fails to install in Windows 10?
How to fix Windows update error 0xc1900131?
How to fix Media Creation Tool error 0x80070006 - 0x90018 in Windows?
How to fix Windows update error 0x800700a1?
How to fix “This operation is not supported when reserved storage is in use” error in Windows?
How to fix Windows installation error 0xC1900101 - 0x40021?
How to fix "The application was unable to start correctly" error 0xc000012d in Windows?
How to fix Microsoft Office error 0-2054 in Windows?
How to fix Microsoft Office error code 30015-44 in Windows?
How to fix "Extracting files to the temporary location" error 1152 in Windows?
How to fix "Unable to save" Photos app error in Windows?
How to fix .NET Framework error 0x800713ec in Windows?
How to fix Event ID 46 (Crash dump initialization failed) in Windows?
How to fix "The previous system shutdown was unexpected" event on Windows?
How to fix "Get the newer version of Windows to stay up to date" error?
How to fix Cryptographic Services high CPU or disk usage in Windows?
How to fix "could not allocate sufficient memory" DirectX error in Windows?
How to fix "You require permission from SYSTEM to make changes" in Windows?
How to fix Windows update error 0x800f0905?
How to fix Windows update error 0xc1900403?
How to fix Windows update error 0x800f0991?
How to fix "Microsoft Office encountered an error during setup" in Windows?
How to fix KB5063878 fails to install in Windows 11?
How to fix Windows upgrade error 0xC1900101 - 0x30018?
How to fix Windows update error 0x80071a2d?
How to fix Windows update error 0x80240035?
How to fix Microsoft Office error 30088-45 in Windows?
How to fix installation error 0x80040c01 in Windows?
How to fix Windows update error 0x80070306?
How to fix Microsoft Office installation error 0-2060 in Windows?
How to fix Windows update error 0x80242008 in Windows?
How to fix Capability Access Manager Service high CPU usage in Windows?
How to fix Office installation error 30094 in Windows?
How to fix Windows update KB5066835 not installing on Windows?
Reinstall your current version of Windows to repair system files and components: how to fix
How to fix "Can't create files" error in Windows Installation Assistant?
How to fix "Could not call proc" error in Windows?
How to fix Microsoft Office installation error 30182-1011 in Windows?
How to fix OneDrive error 0x8007017C in Windows?
How to fix Windows stuck on "Updates are underway" screen?
How to fix Microsoft Office installation error 0-2035?
How to fix "The exception unknown software exception (0xe0000008)" error in Windows?
How to fix Windows update error 0x80070302?
How to fix 0x80042444 - 0x4002F error when installing Windows 11 version 24H2?
How to fix Windows update error 0x800f0993?
How to fix Microsoft Office error code 0-2048 in Windows?
How to fix Microsoft Office error code 30015-25 (1006) in Windows?
How to fix Windows update error 0x800711c7?
NVIDIA DXCache: safe to delete, but games rebuild it. What it is and how to clear it
How to uninstall BlueStacks completely from Windows 11 and 10
How to fix KB5121003 errors in Windows 11?
How to fix CRC error when installing NVIDIA drivers?
Sources
- Microsoft Support: Free up drive space in Windows (read Oct 3, 2026)
- Microsoft Support: Manage drive space with Storage Sense (read Oct 3, 2026)