How to Use Disk Cleanup to Safely Free Up Space in Windows 10 and 11

Quick Summary

Disk Cleanup ( cleanmgr.exe ) is a built-in Windows utility that removes temporary files, system logs, and update fragments to reclaim drive space. To use it, search for Disk Cleanup in the Start menu, select your drive, and choose the files you wish to delete. For maximum space savings, click Clean up system files to remove large items like Windows Update Cleanup and previous OS installations.

What Is Disk Cleanup and Why Should You Still Use It?

Disk Cleanup, technically known as cleanmgr.exe , is a maintenance utility that has been a staple of the Windows ecosystem since Windows 98. Its primary function is to scan your hard drive for files that are no longer required by the operating system or the user, providing a safe way to delete them without compromising system stability. According to Wikipedia , it targets several different categories of files, including temporary internet files, compression of old files, and the Recycle Bin.

In recent years, there have been rumors regarding the deprecation of Disk Cleanup in favor of the modern "Storage Sense" feature. However, as of 2026, the utility remains fully functional and accessible in both Windows 10 and Windows 11. It stands out as a top choice for users who prefer a granular, manual approach to system maintenance rather than relying on automated background processes.

One of the most critical reasons to use this tool is the 85% Performance Rule . Technical assessments suggest that system latency increases significantly once a drive exceeds 85% of its total capacity. Maintaining at least 15-20% free space is essential for virtual memory operations and ensuring that Windows has enough "breathing room" to install updates and manage background tasks. If your drive is nearing this threshold, Disk Cleanup is one of the most effective first steps to restoring performance.

How to Open Disk Cleanup on Your Computer

Accessing the utility is straightforward, though there are several ways to do it depending on your workflow. Most users find the search method to be the most efficient, but the command line offers benefits for those who prefer keyboard shortcuts.

Method 1: Taskbar Search

Click the Start button or the search icon and type "Disk Cleanup." Select the app from the results. This is the standard approach for most Windows 10 and 11 users.

Method 2: The Run Command

Press Windows + R on your keyboard, type cleanmgr , and press Enter. This bypasses the search UI and launches the drive selection tool immediately.

Method 3: File Explorer

Open File Explorer, right-click your C: drive, select Properties , and then click the Disk Cleanup button located in the General tab.

Disk Cleanup interface showing drive selection and file categories
The classic Disk Cleanup interface allows you to select specific categories of data for removal.
Image source: Lenovo Support

What Files Are Safe to Delete in Disk Cleanup?

A common concern for users is whether deleting files through this utility will result in the loss of personal documents or photos. Generally, Disk Cleanup targets system-generated files rather than user-created data. However, understanding what each checkbox represents is vital for a safe experience.

Understanding the Safe to Delete List

Most items in the standard list are entirely safe to remove. These include:

  • Temporary Internet Files: Cached versions of websites you've visited. Deleting these may slightly slow down the initial loading of those sites next time, but it frees up significant space.
  • Recycle Bin: Files you have already deleted but haven't permanently purged. Always check the bin for important items before running the cleanup.
  • Thumbnails: Small preview images for folders and files. Windows will automatically regenerate these as you browse your folders.

Technical Files and Cache Explained

Some categories sound more intimidating than they are. For instance, the DirectX Shader Cache contains files created by the graphics system to reduce application load times. While safe to delete, your PC may experience a minor performance dip the next time you launch a heavy game as the cache rebuilds. Similarly, Delivery Optimization Files are fragments of Windows updates that your PC can share with other computers on your local network. If you only have one PC, these are redundant.

CRITICAL WARNING: The Downloads Folder

In some versions of Windows, the "Downloads" folder is listed as a checkbox. Checking this box will erase every file currently sitting in your Downloads folder, including PDFs, installers, and saved documents. By most accounts, you should leave this box unchecked unless you have manually moved your important files elsewhere.

How to Clean Up System Files for Maximum Space

The standard Disk Cleanup scan only scratches the surface. To find the largest chunks of wasted space, you must use the administrative mode. This is where you can reclaim gigabytes of space left behind by Windows updates and previous operating system versions.

Accessing Administrator Privileges in Disk Cleanup

When you first open the tool, look for the button labeled Clean up system files . Clicking this will prompt the utility to restart with administrator privileges. It will then perform a much deeper scan of the drive, looking for files that the standard user account cannot touch. This process may take a few minutes as it calculates the size of the Windows Update repository.

Managing Windows Update Cleanup and Previous Installations

Once the system scan is complete, you will see new categories. The most significant is often Windows Update Cleanup . Windows keeps copies of all installed updates so that you can uninstall them if a bug occurs. Over time, this folder can grow to 5GB or even 10GB. If your computer is running stably, deleting these is a top-tier way to reclaim space.

Another major item is Previous Windows installations (the Windows.old folder). This appears after a major feature update or an upgrade from Windows 10 to 11. It allows you to "roll back" to your old version of Windows. However, Microsoft Support notes that you only have a 10-day window to perform this rollback. If you are past that window or happy with the new version, deleting this folder can free up 20GB to 30GB of space instantly.

How to Fix Common Disk Cleanup Problems

While Disk Cleanup is generally reliable, it is not immune to errors. Users frequently report issues where the tool appears to freeze or fails to clear the amount of space it promised.

Resolving the Windows Update Cleanup Hang

The most common complaint is that Disk Cleanup "hangs" or gets stuck at the 50% or 99% mark when processing Windows Update Cleanup. This is rarely a crash. Instead, it is a CPU-intensive process where Windows is decompressing and then deleting thousands of small system files. On older hard drives or slower processors, this can take up to 30 minutes. The best advice is to leave the computer alone and let it finish; force-closing the app can occasionally lead to corrupted update records.

Clearing the Microsoft Store Cache

If you run Disk Cleanup and still receive "Low Disk Space" warnings, the culprit might be the Microsoft Store cache, which the utility sometimes misses. You can clear this manually by pressing Windows + R , typing wsreset.exe , and waiting for a blank command prompt window to close. This resets the store and clears out temporary download fragments that might be clogging your drive.

Disk Cleanup vs Storage Sense — Which One Is Better?

With the introduction of Windows 10 and 11, Microsoft introduced Storage Sense . This modern successor is designed to be a "set-and-forget" solution. It automatically deletes temporary files and empties the Recycle Bin when your disk space gets low. While Storage Sense is a significant step forward for the average user, it lacks the granular control of the legacy Disk Cleanup tool.

Feature Disk Cleanup (Legacy) Storage Sense (Modern)
Automation Manual only (unless scripted) Fully automated background task
System File Depth Deep (Windows Update, Windows.old) Moderate (Focuses on user temp files)
User Interface Classic Win32 Dialog Modern Settings App
Safety High (User selects everything) High (Uses safe defaults)

For most users, enabling Storage Sense is highly recommended for daily maintenance. However, for a deep spring cleaning—especially after a major Windows update—the legacy Disk Cleanup tool remains a more powerful option for reclaiming every possible megabyte.

Advanced Power User Tips for Automating Cleanups

For those who manage multiple PCs or simply want to automate their maintenance, Disk Cleanup offers hidden command-line arguments that allow for preset configurations.

Command Line Mastery with Sageset and Sagerun

You can create a "preset" of checkboxes using the sageset command. This is particularly useful if you want to ensure the "Downloads" folder is never accidentally checked while "Windows Update Cleanup" always is.

  1. Open Command Prompt as Administrator.
  2. Type cleanmgr /sageset:1 and press Enter.
  3. Select the boxes you want to be part of this preset and click OK.
  4. To run this specific cleanup later without the UI, type cleanmgr /sagerun:1 .

Automating Maintenance with Task Scheduler

By combining the /sagerun command with the Windows Task Scheduler, you can make your PC clean itself every month. Simply create a "Basic Task," set the trigger to your preferred schedule, and set the action to start cleanmgr.exe with the /sagerun:1 argument. This ensures your drive stays lean without any manual intervention.

When Should You Stop Cleaning and Upgrade Your Hardware?

There comes a point where software cleanup is no longer sufficient. Modern Windows environments, especially those running professional software or modern games, struggle on drives smaller than 512GB. If you find yourself running Disk Cleanup every week just to keep your PC functional, it is likely time to consider a hardware upgrade.

Upgrading to a larger NVMe SSD is one of the most impactful improvements you can make to a computer's longevity. Additionally, remember that while Disk Cleanup is safe for SSDs, you should never "defragment" an SSD, as it provides no performance benefit and can reduce the lifespan of the drive. Disk Cleanup, however, simply removes files, which is beneficial for all drive types.

Key Takeaways for Maintaining Your Windows Drive

  • Run as Admin: Always click "Clean up system files" to access the largest space-saving options like Windows Update Cleanup.
  • Watch the Downloads: Never check the "Downloads" box unless you have backed up your personal files from that folder.
  • Be Patient: If the tool seems to hang on Windows Update Cleanup, give it at least 30 minutes to finish its work.
  • The 85% Rule: Aim to keep at least 15-20% of your drive free to prevent system slowdowns and update errors.
  • Automate: Use Storage Sense for daily tasks and Task Scheduler with sagerun for deep monthly cleans.

Start by running a standard cleanup today to see how much immediate space you can reclaim without any risk to your data.

Frequently Asked Questions

Does Disk Cleanup delete my photos or documents?
No, Disk Cleanup is designed to target system files and temporary data. It will not touch your Documents, Pictures, or Music folders. The only exception is the "Downloads" folder and the "Recycle Bin." If you have saved photos in your Downloads folder or moved documents to the Recycle Bin, those will be deleted if those specific boxes are checked.
Is it safe to delete the DirectX Shader Cache?
Yes, it is entirely safe. These files are used to speed up the loading of graphics in games and apps. If you delete them, Windows will simply recreate them the next time they are needed. You might notice a very slight stutter or longer load time the first time you open a game after cleaning, but it will not harm your hardware or software.
Why is Disk Cleanup taking so long to finish?
This usually happens during the "Windows Update Cleanup" phase. Windows is not just deleting files; it is often decompressing old system files to see if they are still needed and then removing them. This process is very heavy on your CPU and disk. On a standard hard drive, this can take 20 to 30 minutes. It is best to let the process complete naturally.
Is Disk Cleanup better than third-party tools like CCleaner?
Disk Cleanup is widely regarded as the safer option because it is built by Microsoft specifically for the Windows OS. While third-party tools like CCleaner can sometimes find more files from third-party apps (like Chrome or Photoshop), they also carry a higher risk of deleting registry keys or system files that shouldn't be touched. For most users, the built-in tool is more than sufficient.
Can I run Disk Cleanup on an SSD?
Yes, running Disk Cleanup on an SSD is highly recommended. While you should avoid defragmenting an SSD, removing unnecessary files helps maintain the drive's performance and ensures there is enough space for "wear leveling," which extends the life of the drive.