How to free up wasted space with Disk Cleanup, in Windows

When we want to tweak different aspects of Windows, we prefer to use the built-in tools provided by the operating system. All modern versions of Windows and especially Windows 10, provide some great tools you can use. One such tool is the underrated Disk Cleanup, which allows you to free up space on your partitions and safely remove system files that you no longer need. Let's see how it works and why it is one of the best tools for cleaning up storage space, in all versions of Windows:

How Disk Cleanup works in Windows

Disk Cleanup or cleanmgr.exe is one of the best Windows programs for removing unnecessary files and freeing up storage space. It is not as invasive as many third-party tools that promise the same thing. Those tools may remove files that are required by specific apps to run well, and they also tend to dig deep into the Windows Registry and remove entries that may be useful to the operating system. Instead, Disk Cleanup only removes files that are 100% safe to remove, and do not negatively affect the functioning of Windows, or any of your installed apps. When analyzing your disk space, Disk Cleanup looks for temporary files that can be removed, for the files that you have already moved to the Recycle Bin (signaling that you do not need them anymore), a variety of system files that Windows can run without, offline web pages, setup log files and so on. If you want to reduce the number of unnecessary files on your HDD or SSD, we recommend that you use Disk Cleanup.
Disk Cleanup, cleanmgr.exe, Windows
Disk Cleanup, cleanmgr.exe, Windows
One thing that you should remember about this tool is that it works best when used on the partition where Windows is installed. If you use it on other partitions, it only removes the files and folders that are found in the Recycle Bin. Therefore, using it on partitions other than the "C:" drive is not efficient.
Disk Cleanup, cleanmgr.exe, Windows
Disk Cleanup, cleanmgr.exe, Windows
The Disk Cleanup tool is located on the disk, in the following folder: "C:WindowsSystem32".

How to clean up unnecessary files from Windows

First, you have to open Disk Cleanup. You can find all the methods for doing that, in this tutorial: 11 ways to start Disk Cleanup, in Windows (all versions). One fast method to do it is to use the search feature. In the appropriate search field for your version of Windows, type the word "disk." Then, click or tap the Disk Cleanup search result.
Disk Cleanup, cleanmgr.exe, Windows
Disk Cleanup, cleanmgr.exe, Windows
If you have only one partition on your Windows computer or device, Disk Cleanup starts by automatically scanning for files that you can delete to free up space.
Disk Cleanup, cleanmgr.exe, Windows
Disk Cleanup, cleanmgr.exe, Windows
If your Windows device has two or more partitions, you are asked to select the drive that you want to clean up. Click or tap the Drives drop-down box and select the desired drive. Then, press OK.
Disk Cleanup, cleanmgr.exe, Windows
Disk Cleanup, cleanmgr.exe, Windows
Wait for Disk Cleanup to analyze the selected drive and display what files can be cleaned up. A progress bar is shown during this process which generally takes less than a minute to perform, on a computer with an SSD drive, and a few minutes on one with an HDD. When done, Disk Cleanup shows what can be freed up. In the "Files to delete" section, you see different types of files that can be deleted. This includes items such as Downloaded Program Files, Temporary Internet Files, Delivery Optimization Files, Recycle Bin, System error files, Temporary files and others. For each category of items, you see how much space they occupy at the moment. Select a category to see its description and what kind of files it includes.
Disk Cleanup, cleanmgr.exe, Windows
Disk Cleanup, cleanmgr.exe, Windows
Decide which files to delete by selecting the appropriate categories. When you are done selecting everything you want to be deleted, click or tap OK. A confirmation message is shown. Press "Delete Files," and the cleanup process starts.
Disk Cleanup, cleanmgr.exe, Windows
Disk Cleanup, cleanmgr.exe, Windows
Disk Cleanup shows a progress bar similar to the one below.
Disk Cleanup, cleanmgr.exe, Windows
Disk Cleanup, cleanmgr.exe, Windows
When the cleanup is done, Disk Cleanup closes itself automatically. If you want to free space on another drive (if available), you need to start the tool again and select that drive for analysis and cleanup.

How to delete unneeded system files from Windows

Disk Cleanup provides a lesser-known option that also allows you to clean system files like previous Windows installations, Windows Defender files, Windows Update files, and Windows upgrade log files that you might no longer need. These files are not shown when performing a standard analysis. Also, such files cannot be cleaned up unless you log in as an administrator or you can provide the administrator password when requested. First, run Disk Cleanup, select the drive that you want to clean up (if you have more than one partition) and perform a standard analysis, as shown in the previous section. Then click or tap "Clean up system files."
Disk Cleanup, cleanmgr.exe, Windows
Disk Cleanup, cleanmgr.exe, Windows
You are asked again to select the drive you want to analyze if more than one drive is available on your Windows computer or device. Select it and click or tap OK. If you have only one drive, the analysis is started automatically. When the analysis is done, you will notice two differences: the "Files to delete" list is larger, and you also have an additional tab called "More Options." We will tell you about this additional tab in the next section of this tutorial. For now, let's stick to the "Files to delete" list. This list now includes many types of system files that can be safely deleted. For example, Disk Cleanup can delete quite a few Windows Update files that are no longer needed, device driver packages that are no longer useful, files that were used to upgrade to the latest version of Windows, and so on.
Disk Cleanup, cleanmgr.exe, Windows
Disk Cleanup, cleanmgr.exe, Windows
Select the types of files you want to delete, click or tap OK and confirm your choice by pressing Delete Files.
Disk Cleanup, cleanmgr.exe, Windows
Disk Cleanup, cleanmgr.exe, Windows
The cleanup process starts, and you are shown a progress bar. The cleanup of system files takes a lot longer than the cleanup of temporary files. Therefore, arm yourself with some patience. When the cleanup is done, Disk Cleanup closes itself automatically.

How to remove programs that you do not use

When you ask Disk Cleanup to analyze and clean system files, an additional tab is displayed, named More Options. This tab has additional tools that can be used to free up even more space. First, if you click or tap the Clean up button from the Programs and Features category, the Programs and Features window is shown, from which you can manually uninstall desktop apps you no longer use.
Disk Cleanup, cleanmgr.exe, Windows
Disk Cleanup, cleanmgr.exe, Windows

How to remove System Restore snapshots

In the More Options tab, there is another Clean up button found in the section named System and Restore and Shadow Copies. When you click or tap on it, you can clean up all System Restore points except the most recent. You are asked to confirm that you want to delete all but the most recent restore point. Click or tap Delete and, during the next system reboot, those files are cleaned up, before your login.
Disk Cleanup, cleanmgr.exe, Windows
Disk Cleanup, cleanmgr.exe, Windows
If you want to do some work before manually restarting Windows, close the Disk Cleanup window. The cleanup was scheduled the moment you pressed Delete.

How to view the files that you are about to delete with Disk Cleanup

For some of the categories of files that can be deleted, Disk Cleanup allows you to view the files that can be deleted. Click or tap the View files button if it shows up and Windows opens File Explorer or Windows Explorer, depending on the version of Windows that you are using, straight at the folder where the selected files are found.
Disk Cleanup, cleanmgr.exe, Windows
Disk Cleanup, cleanmgr.exe, Windows
Browse those files and then decide if you want Disk Cleanup to delete them.

Conclusion

Disk Cleanup is an excellent yet underrated Windows tool for freeing up space on your disk. You do not need any third party solutions that are likely to screw something up. Disk Cleanup works well, it is powerful, and it does not ruin your Windows installation. Do not hesitate to use it more often. You will love it using it.
Discover: Productivity Apps Recommended System Tutorials Windows

Discussion (18)

  1. ITGuru
    ITGuru

    I use restore utilities (Deep Freeze, Reboot Restore Rx, etc) on many of our public access PC’s as it’s easier than running a script, but even for for my own personal use, I’ll use a backup and restore utility (i.e. AX64, Rollback Rx, Comodo Time Machine) and I find you can do a quick restore that way too. Usually if configured properly these programs will wipe a bunch of junk off your machine.

  2. anand
    anand

    in disk clean up tool

  3. anand
    anand

    it is safe to delete per used archived windows error report files, per used queued windows error report file, system archived windows error report files and system queued windows error report files.

  4. Adrian Kentleton
    Adrian Kentleton

    The screenshots are fine!
    However, when I run cleanmgr.exe (from an ‘Administrator’ account, on Win 7 Home Premium) I do not get a ‘Clean up system files’ option.

    1. Ciprian Adrian Rusen
      Ciprian Adrian Rusen

      What about when using its shortcut from the Start Menu?

      1. Adrian Kentleton
        Adrian Kentleton

        Same result. I have ‘System Restore’ disabled; might that be relevant?

        1. Ciprian Adrian Rusen
          Ciprian Adrian Rusen

          No. It is strange indeed. Can you share a screenshot of how it looks like on your end?

  5. Alekz
    Alekz

    Great article! I just freed up 12 GB on temp files and memory dumps, and 32 GB (seriously, WTF!?) on Restore points! A total of 44 GB free! 🙂

    1. Ciprian
      Ciprian

      Awesome indeed. Was surprised as well to see how useful this tool can be.
      Freeing up a few GB in one go, is really great.

  6. Corrine
    Corrine

    Another excellent use for the Disk cleanup utility is in the unfortunate case of a malware infection. After cleaning the computer, create a fresh restore point. Then use Disk Cleanup to “remove all restore points except the most recent one.”

    This results in having a restore point should something go wrong during the cleanup but eliminating the possibility of restoring an infected point after the malware has been removed. (The same applies for Windows XP and Windows Vista.)

    As to the images, Ciprian, they are just fine. The object is not a “fashion show” but great tutorials, which you and the other folks here at 7 Tutorials continue to provide.

    Keep up the great work!

    1. Ciprian
      Ciprian

      It’s just that the screenshots are not rounded and on another one you don’t like the aero theme used by the computer where the screenshots were taken. You are a bit tough on us. 🙂
      However, will try to please in future articles.

  7. Ravi Gupta
    Ravi Gupta

    Please improve the quality of screenshots. These look awful.

    1. Ciprian
      Ciprian

      Not sure why you say this. The images are crisp and clear.
      How do you see them?

      1. Ravi Gupta
        Ravi Gupta

        I see cut out window borders – suggesting u captured these using snipping tool, I see ugly colored aero theme. Come on, this is a professional looking web site. Maintain it that way.

        1. bigjohn
          bigjohn

          Looks clean and crisp to me.

        2. Richard
          Richard

          Hi Ravi

          The images also look fine to me. Maybe it’s your computer?

          Best Regards,

          Richard

    2. Richard
      Richard

      It looks alright to me also.

      Richard