Computer Disk Cleanup in Windows 11 and 10: How to Use Disk Cleanup Safely, Step by Step

Computer disk cleanup is the job of removing temporary and leftover files from your drive so Windows has room to work. Windows ships a tool for it called Disk Cleanup (the program is cleanmgr). It is free, it is already on your PC, and it asks before it deletes anything. This guide shows you how to open it in Windows 11 and Windows 10, what every checkbox means, what to keep, and what to do when it misbehaves.
It is written for beginners, so each step says where to click and what you should see. Nothing here was run on a real PC by us. The menu paths follow Microsoft’s documentation where we could confirm them, and the text says so where we could not.
In this guide
- Quick answer
- What Disk Cleanup is and when to use it
- How to open Disk Cleanup
- Before you click OK
- Computer disk cleanup, step by step
- What each checkbox means
- Decision tree: which items should I tick?
- Clean up system files
- What to keep
- The More Options tab
- Optional: saved settings from the command line
- Common errors and troubleshooting
- After the clean-up
- Frequently asked questions
- How this guide was checked
- Sources
Quick answer
Quick answer
- Open Start, type Disk Cleanup, pick your Windows drive (usually C:) and wait for the list.
- Tick the safe items, such as Temporary files, Thumbnails, Delivery Optimization Files and Windows error reports. Read the description under each one first.
- Leave Downloads and the Recycle Bin unticked until you have checked them yourself.
- Choose Clean up system files for the larger Windows items, then click OK and confirm.
- If something goes wrong, the troubleshooting section below covers the usual errors.
What Disk Cleanup is and when to use it
Disk Cleanup scans one drive and lists groups of files that Windows can usually recreate or no longer needs. You choose which groups to delete. It does not touch your Documents, Pictures or Desktop folders. It also does not find repeated copies of your own files; see how to find and remove duplicate files. For an item-by-item view of what Disk Cleanup and third-party cleaner tools can each reach, see our Disk Cleanup versus third-party disk cleaner comparison.
Microsoft’s command reference lists cleanmgr as available on Windows 10 and Windows 11. Newer Windows versions also offer the same job in Settings under System > Storage. Both routes exist side by side, so you can use whichever you find easier. For the Cleanup recommendations list on that page, see what each Cleanup recommendation removes.
Use Disk Cleanup when:
- your drive is getting full and you want a quick, controlled clean-up;
- you want to see what is taking space before you delete it;
- Windows asks you to free space before an update.
If you want to compare the tool with Storage Sense and third-party programs, we cover that separately in our comparison of Windows clean-up options. If you want to find out what is filling the drive in the first place, start with finding what is taking space on the C: drive. To decide which cleaning options suit your PC, read our guide to PC cleaner settings.
How to open Disk Cleanup
Any of these three routes opens the same tool. Pick one.
Route 1: Start menu search
- Click Start or press the Windows key.
- Type Disk Cleanup.
- Click Disk Cleanup in the results.
You should see a small window titled Disk Cleanup: Drive Selection.
Route 2: Run box
- Press Windows + R.
- Type
cleanmgrand press Enter.
Route 3: File Explorer
File ExplorerThis PCRight-click your drivePropertiesGeneralDisk Cleanup
This route skips the drive-selection window because you already picked the drive. In Windows 11 the right-click menu may first show a short list; choose Properties from it, or Show more options first if Properties is not listed.
Before you click OK
Disk Cleanup is cautious, but deleted files do not come back. Spend two minutes on this check first.
- Note your free space. Open File Explorer, click This PC and write down the free space on the drive you are cleaning. You will compare it afterwards.
- Look through Downloads. Many people keep installers, receipts and photos there. Disk Cleanup can list this folder; do not tick it unless you have checked it. On a PC shared with other accounts, read how to clean up without deleting other people’s files first.
- Check the Recycle Bin. Open it and restore anything you still want.
- Create a restore point if you can. This is a safety net for a cleaning that removes something you need, such as old driver packages. Microsoft's System Protection page explains how to create one, and our System Restore guide shows the steps.
- Back up anything irreplaceable. Our backup guide covers files and a system image.
Windows 10 users
Microsoft ended Windows 10 support on October 14, 2025. Disk Cleanup works almost the same way there. In Settings, both versions use System > Storage, but some labels differ slightly. If a label here does not match your screen, use the description text under each checkbox. If you are weighing a cleaner program on an unsupported Windows 10 PC, see our guide to PC cleaner for Windows 10 end of support.
Computer disk cleanup, step by step
These are the five steps of a safe run. Follow them in order.
- Pick the drive Choose your Windows drive, normally C:.
- Wait for the scan Windows adds up what each group uses.
- Read, then tick Click each item and read its description.
- Add system files Choose Clean up system files for the larger Windows groups.
- Confirm and compare Click OK, confirm, then check your free space.
Step 1: Choose the drive
In the drive-selection window, keep C: unless you want to clean another drive. Click OK. A short message says Disk Cleanup is calculating how much space you can free. This can take from a few seconds to a few minutes.
Step 2: Read the list
The Disk Cleanup window opens with a list under Files to delete. Next to each item you see how much space it uses. Click an item once to read its description in the box below the list.
You should see: a total at the top, shown as Total amount of disk space you gain, that changes as you tick and untick items.
Step 3: Tick only what you understand
Use the table in the next section. When an item is not in the table or you are unsure, leave it unticked. You can run Disk Cleanup again later.
Step 4: Click OK and confirm
Click OK. Windows asks whether you are sure you want to permanently delete these files. Click Delete Files. A progress bar shows the clean-up. Do not switch the PC off while it runs.
If this fails: if the window stays on a progress bar for a long time, see the troubleshooting section below before you force anything to close.
What each checkbox means
How to read the checkbox list
The exact list differs from PC to PC and from one Windows version to the next. This table covers the items most people see. Safe means it is a normal choice for most PCs. Only if means read the warning first. Keep means leave it unless you have a reason. If a third-party cleaner's scan list shows items you do not recognise, our guide to reading PC cleaner scan results and which junk files are safe to delete explains how to judge them.
The full checkbox table
| Item | What it is | Safe to tick? |
|---|---|---|
| Downloaded Program Files | Small web components saved by some browsers and add-ons. | Safe |
| Temporary Internet Files | Saved copies of web pages. Sites may load slower once while they are rebuilt. | Safe |
| Temporary files | Files that programs leave behind while they work. | Safe. Close your open programs first. |
| Thumbnails | Small preview pictures. Windows rebuilds them when you open a folder. | Safe. Folders with many pictures open a little slower the first time. |
| Delivery Optimization Files | Update files Windows stored so it can share or reuse them. | Safe |
| Windows error reports and feedback diagnostics | Crash reports Windows keeps for troubleshooting. | Only if you are not chasing a recurring crash right now. |
| DirectX Shader Cache | Compiled graphics data that games and apps reuse. | Safe. The first game launch afterwards may be slower. |
| Recycle Bin | Files you deleted but have not permanently removed. | Only after you have looked inside. |
| Downloads | Your own Downloads folder, if your Windows version lists it. | Keep unless you have checked every file. |
| Windows Update Cleanup | Older update files kept after updates install. | Only if you do not plan to uninstall a recent update. |
| Device driver packages | Older copies of drivers Windows stored. | Only if your devices work. Keep it if a new driver caused trouble. |
| Previous Windows installation(s) | The old Windows folder kept after a big upgrade. | Only if you will not go back. It is a large item. |
| Language resource files | Languages you do not use. | Only if you are sure you will never need them. |
Items that have their own guides
Two of these items have their own guides because they need extra care. For the previous Windows folder, read how to remove the previous Windows installation safely. For update leftovers, read what Windows Update leftovers are safe to remove. Crash dump files and error reports, also in the table, have their own guide on whether to keep or clean them. More on that item in DriverStore FileRepository too large in Windows 11. Prefetch files, which Windows manages itself, are covered in our guide to prefetch folders safe to delete.
Decision tree: which items should I tick?
Use this when you are looking at the list and are unsure about one item. Read the item's description first, then follow the branch. It is general guidance, and the table above has the detail for each item.
- Is the item in the Safe rows of the table (temporary files, thumbnails, Delivery Optimization Files, shader cache, downloaded program files)?
- Yes: tick it. Close your open programs first.
- No: go to the next question.
- Could the item hold something of yours (Recycle Bin, Downloads)?
- Yes: open the folder and check it first. Tick the item only when nothing in it is needed.
- No: go to the next question.
- Would deleting it stop you from undoing a change (Windows Update Cleanup, Previous Windows installation(s), device driver packages)?
- Yes: keep it for now if the PC has been unstable or you may roll back. Tick it only when everything works and you will not go back.
- No: go to the next question.
- Is the item missing from the table, or do you not understand its description?
- Yes: leave it unticked. You can run Disk Cleanup again later.
Clean up system files
The first list is short. Windows keeps its larger leftovers behind a second button.
- In the Disk Cleanup window, click Clean up system files.
- If Windows asks for permission, click Yes. You need an administrator account.
- Choose the drive again if asked, then click OK.
- Wait for the longer scan. It can take a few minutes on a busy drive.
- Tick the system items you understand, using the table above.
- Click OK, then Delete Files.
You should see: extra items such as Windows Update Cleanup and Previous Windows installation(s) in the list, if your PC has them.
Warning
Removing update files or the previous Windows installation limits your ability to roll back. If your PC has been unstable since a recent update, fix that first and clean up later. Our guide on uninstalling a Windows update explains the rollback options.
What to keep
Disk Cleanup never deletes your own documents, but a few choices can still hurt if you are careless. Keep these unless you have a clear reason:
- Your Downloads folder. It holds files you chose to save.
- Recycle Bin contents you may still want back.
- Previous Windows installation(s) if you might roll back to the older Windows version.
- Device driver packages if a recent driver update broke something and you may need the older one.
- Update files if you may uninstall a recent update.
- Restore points (see the next section) unless you have a newer one you trust.
Do not delete files from the Windows folder or the WinSxS folder by hand to get the same result. Let Windows tools do it, because they know which files are safe. If you wonder why the WinSxS folder looks so large, our WinSxS folder explainer shows how to read its real size.
The More Options tab
After you click Clean up system files, a second tab called More Options appears. It has two sections.
- Programs and Features: opens the list of installed apps so you can uninstall ones you no longer use.
- System Restore and Shadow Copies: removes all restore points except the most recent one.
Warning
Cleaning the restore points frees space but leaves you with only one rollback point. Only use it when you are sure the PC is stable right now.
Optional: saved settings from the command line
If you clean the same items often, cleanmgr can remember your choices. Microsoft documents two switches for this. This is optional; skip it if you are new to the command line.
- Press Windows + R, type
cmdand press Enter. - Run the first command to choose and save your settings under the number 1. A Disk Cleanup settings window opens. Tick your items and click OK.
cleanmgr /sageset:1
- Later, run the saved choices without opening the list:
cleanmgr /sagerun:1
You should see: Disk Cleanup runs with the items you saved and closes when finished. Windows stores the saved choice itself; you do not need to edit anything else. Re-run the first command if you want to change your selection.
Common errors and troubleshooting
Disk Cleanup stays on "Calculating"
A large drive, a very full drive or many small files can make the scan slow. Wait at least 10 to 15 minutes before you decide it is stuck. If it still does not move, close it, restart the PC and run it again with only the main Windows drive selected.
It freezes on Windows Update Cleanup
This item can take a long time because Windows is tidying many update files. Leave the PC on and plugged in. If it never finishes, restart, then try again. If it keeps failing, see our guide to fixing Windows Update when it is stuck or failing, because a half-finished update often causes this.
"Access is denied" or no Clean up system files button
You need to be signed in with an administrator account. Close the window, then open Disk Cleanup again and choose Clean up system files. If the button is missing, make sure you opened the tool from the Start menu and accept the permission prompt. If the tool will not open at all, or closes as soon as you start it, read our guide to fixing Disk Cleanup that will not open.
An item you expected is missing
The list changes with your PC. Some items only appear when they exist, for example Previous Windows installation(s). A missing item usually means there is nothing to remove or that Windows already removed it.
Free space did not change
Some groups are small, and Windows may refill temporary folders as soon as you reopen apps. If the number barely moves, read why space sometimes does not change after a clean-up. If the drive fills up again within days, our guide on why the C: drive keeps filling up shows how to measure what is growing. If a cleaner reports gigabytes freed while free space on C: barely moves, see why a PC cleaner can report space freed that never shows up.
Temporary files will not delete
Files in use cannot be removed. Close your apps and run the tool again. For files that stay locked, see when temporary files refuse to delete.
Windows 10 and Windows 11 look different
Both versions open the same Disk Cleanup tool, but the Settings route differs. In Settings, go to System > Storage. Windows 11 shows Temporary files and Cleanup recommendations there; labels in Windows 10 may be slightly different. Microsoft's "Free up drive space in Windows" page covers this route. Our guide to freeing up disk space walks through it, and the Storage Sense troubleshooting article helps when the automatic version will not run.
If Windows itself seems damaged
If Disk Cleanup crashes or shows errors that you also see in other tools, the system files may be damaged. Our SFC and DISM guide shows how to repair them before you try again.
After the clean-up
- Open File Explorer and click This PC.
- Compare the free space with the number you wrote down.
- Restart the PC once. Windows may finish removing some files during the restart.
- Open a few folders and apps to make sure everything works as normal.
How to read your result
Free space went up
- The clean-up worked. Check that your apps and folders open as normal.
- If the PC still feels slow, free space was probably not the cause. See what actually helps PC speed.
Free space barely changed
- Only small groups were ticked, or Windows refilled temporary folders.
- See the "Free space did not change" section above, then measure what is using the space.
For more cleaning tools, our overview of the built-in Windows clean-up tools covers the rest, and our cleaning overview for Windows 10 and 11 explains where each tool fits. Be careful with outside programs: our article on unsafe system cleanup software lists the red flags, and the comparison of free and paid tools helps you choose if you want one. For registry cleaners in particular, see our PC cleaner vs registry cleaner comparison. To clear stored web and app data as well, see how to clear cache in Windows 11. For a routine that runs on a timetable rather than whenever the drive is full, see our weekly, monthly and yearly cleanup schedule.
Frequently asked questions
Basics
Is Disk Cleanup safe to use?
Yes, when you read each description and leave items you do not understand unticked. It lists only groups Windows considers removable, and it asks you to confirm before it deletes.
How often should I run it?
There is no fixed schedule. Run it when your free space is low, before a large update, or every few months. Running it daily gains very little.
Will it make my computer faster?
Not by itself. Freeing space helps when the drive is nearly full, because Windows needs room to work. We do not promise a speed gain, and we did not measure one.
Will it delete my photos or documents?
It does not delete your Documents, Pictures or Desktop folders. The two items that can contain your own files are the Recycle Bin and, on some Windows versions, Downloads, so check them first.
Settings and tools
What is the difference between Disk Cleanup and the Storage settings page?
They do similar jobs. Disk Cleanup is the older tool with a checkbox list. The Storage page in Settings shows what uses space and offers Temporary files and Cleanup recommendations. You can use either.
Can I delete Windows Update Cleanup files?
Yes, if you do not plan to uninstall a recent update. After cleaning, Windows may not be able to roll that update back.
Is the Recycle Bin item safe to tick?
It is safe only after you have looked inside, because ticking it permanently deletes everything in it.
Do I need a restore point first?
It is not required, but it is a good safety net before you remove system items such as driver packages or update files.
How this guide was checked
The steps follow Microsoft's pages on Disk Cleanup, freeing drive space and System Protection, plus the command reference for cleanmgr. We could not run every step on a real PC. Checkbox names and menu labels vary between Windows versions, so each item's own description is the best guide on your screen.
More help
For more repair and cleanup help, browse our PC repair guides or try the Repair Assistant for step-by-step help with a specific problem.