ThisCalculator

Everyday

Disk Cleanup in Windows 10: How to Use It

Updated · Standard formula, shown below

Disk Cleanup in Windows 10 is a built-in utility that frees up hard drive space by deleting temporary files, system files, and other data you no longer need. You open it by typing “Disk Cleanup” in the Start menu, select the drive you want to clean, and choose which file categories to remove. The tool is safe for routine maintenance, but you should understand what each category does before you tick the boxes.

What Is Disk Cleanup and Why Does It Exist?

Disk Cleanup has been part of Windows since Windows 98, and Windows 10 still includes it alongside the newer Storage Sense feature. Its purpose is simple: Windows and the programs you run create temporary files constantly—update leftovers, thumbnail caches, web browser caches, and logs. Over time these can eat up several gigabytes, especially on smaller SSDs. Disk Cleanup scans the selected drive, shows you how much space each category occupies, and lets you delete the ones you choose.

It is not a defragmenter, a malware scanner, or a registry cleaner. It only removes files that Windows considers safe to delete, so it is a good first step when your drive is nearly full.

How to Open Disk Cleanup in Windows 10

There are three common ways to launch it:

  • Click the Start button, type Disk Cleanup, and press Enter.
  • Press Windows key + R, type cleanmgr, and click OK.
  • Open File Explorer, right-click the drive (e.g., C:), select Properties, and click the Disk Cleanup button on the General tab.

After it runs, you will see a list of file categories with checkboxes. The list varies by system but typically includes Downloaded Program Files, Temporary Internet Files, DirectX Shader Cache, Delivery Optimization Files, and Recycle Bin.

What Each Cleanup Category Actually Deletes

Understanding the categories prevents you from accidentally removing something you need. Here are the most common ones:

  • Windows Update Cleanup: Old versions of Windows update files left after a feature update. These can be several gigabytes. Safe to delete after you confirm your system works.
  • Temporary Files: Files created by apps and the system that are no longer in use. Usually safe, but some programs may slow down on first launch afterward.
  • Recycle Bin: Deleted files that are still recoverable. Once you empty it, they are gone permanently.
  • Thumbnails: Small preview images for folders and pictures. Windows rebuilds them automatically; you will only notice a slight delay when browsing image folders.
  • Delivery Optimization Files: Updates downloaded from other PCs on your network (peer-to-peer). Safe to delete; they are just caches.
  • DirectX Shader Cache: Compiled graphics shaders that speed up games. Deleting them means games will recompile shaders, causing a brief stutter on next launch.
  • Previous Windows Installation(s): The entire old Windows folder after a major update. This is your rollback option—deleting it prevents you from reverting to the previous version. Only delete if you are sure you will not need to go back.

How to Use Disk Cleanup Safely (Step-by-Step)

Follow these steps for a routine cleanup that avoids most pitfalls:

  1. Open Disk Cleanup and select the drive you want to clean (usually C:).
  2. Wait for the scan to finish. It may take a minute on large drives.
  3. Review the list. By default, most items are unchecked. Check the ones you want to delete.
  4. If you want to clean system files, click Clean up system files at the bottom. This requires administrator permission and will rescan the drive.
  5. After the rescan, check the system file categories you want (e.g., Windows Update Cleanup).
  6. Click OK, then confirm by clicking Delete Files.

If you are unsure about a category, leave it unchecked. The tool will not delete anything you do not select.

Common Problems and How to Fix Them

Disk Cleanup sometimes fails or seems to do nothing. Here are typical issues:

  • It gets stuck on “Calculating”: This usually happens when the drive has many files or a slow disk. Wait a few minutes. If it never finishes, restart the PC and try again.
  • It says you need administrator permission: Right-click Disk Cleanup and select “Run as administrator.”
  • It does not free up as much space as expected: You may need to click “Clean up system files” to see the largest categories, like Windows Update Cleanup.
  • It crashes or closes immediately: Try running the built-in System File Checker: open Command Prompt as administrator and type sfc /scannow.
  • It does not show all categories: Some categories only appear after a major update or when certain files exist. Run the system file cleanup option to see more.

Disk Cleanup vs. Storage Sense vs. Third-Party Tools

Windows 10 also includes Storage Sense, which can automate the same cleanup. You can find it in Settings > System > Storage. It can automatically delete temporary files and empty the Recycle Bin on a schedule. Disk Cleanup gives you more manual control, while Storage Sense runs in the background.

Third-party tools like CCleaner offer similar functionality, but they are not necessary and sometimes bundle unwanted software. The built-in tools are sufficient for most users. Disk Cleanup does not touch your personal files, documents, or installed programs, so it is safer than aggressive third-party cleaners.

How to Read the Results and Know When to Run It

After the cleanup, you will see a summary of how much space was freed. The number depends on how long it has been since you last cleaned. A good rule of thumb is to run Disk Cleanup once a month, or whenever your drive free space drops below 10–15% of its capacity.

If you still need more space after running Disk Cleanup, consider uninstalling unused programs, moving personal files to an external drive, or expanding your storage. Disk Cleanup is a maintenance tool, not a permanent solution for a drive that is too small.

Frequently Asked Questions

Is Disk Cleanup safe to use?

Yes, for the standard categories. Microsoft designed it to delete only files that are not needed for normal operation. The main exception is “Previous Windows Installation(s)”—deleting that removes your ability to roll back a major update, so only do it if you are confident the update is stable.

Why does Disk Cleanup take so long?

The initial scan can take several minutes on a large or fragmented drive. The “Clean up system files” option rescans the entire drive, which adds more time. If it seems frozen, wait at least 10 minutes before restarting.

Can I use Disk Cleanup on an external drive?

Yes, you can select any drive letter, including USB drives. However, the tool will only show categories that apply to that drive—for example, Recycle Bin and Temporary Files. It will not show Windows Update Cleanup unless it is the system drive.

What is the difference between Disk Cleanup and Storage Sense?

Disk Cleanup is a manual tool that you run on demand. Storage Sense is an automatic feature that can delete temporary files and recycle bin contents on a schedule. Both use the same underlying categories, but Storage Sense runs in the background without your input.

Will Disk Cleanup delete my personal files?

No. It only deletes files in the categories listed, which are all system or temporary files. Your documents, photos, music, and other personal data are never touched.

How do I run Disk Cleanup from Command Prompt?

Open Command Prompt and type cleanmgr and press Enter. To launch the system file cleanup directly, use cleanmgr /sageset to configure options, or cleanmgr /sagerun to run with pre-configured settings. For most users, the graphical interface is simpler.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.