How To Run The Advanced Disk Cleanup Version In Windows

Martin Brinkmann
Jan 9, 2012
Updated • Jul 22, 2021
Tutorials, Windows tips

The Disk Cleanup tool offers a great way to quickly free up disk space by deleting temporary files that are no longer needed. It is in no way as complete or thorough as third party tools like CCleaner, but it gets the job done and does not require you to install another software on the system for that operation.

Most users do not know that Microsoft has integrated an advanced version of the cleanup tool in the Windows operating system. The core reason for that is that it can only be started from the command prompt, and not from menus or by clicking on a program icon on the desktop.

Update: recent versions of the Disk Cleanup tool ship with an option to run the advanced version after start. Just start the Disk Cleanup tool like you would normally, select the drive you want to clean, and on the next screen the "clean up system files" option. This repeats the process (selecting drive and all), but opens the advanced cleaning options in the end.

clean up system files

The advanced version lists all the cleaning options described below. Update End

Lets first take a look at the standard version of Disk Cleanup. One of the easiest methods to start Disk Cleanup on Windows is the following one:

  1. Use the shortcut Windows-r to bring up the run box.
  2. Type cleanmgr in there and tap on the enter-key afterwards.

This opens the program right away. There are other ways to launch it, for instance by entering disk cleanup in the start menu search form.

The standard Disk Cleanup tool can delete the following temporary files on the system. Included in the deletion are temporary files, thumbnails, or downloaded programs.

standard disk cleanup

Tip: Check out How To Clean Hard Drives In Windows 7 for general information about the cleanup software.

Compare that to the options the advanced cleanup tool offers.

advanced disk cleanup

Included in the advanced tools are options to clean debug dump files, system and user queued error reporting files, files discarded by Windows upgrade, or setup and windows upgrade log files.

Here is how you can load the advanced Disk Cleanup Tool in Windows:

  1. Open the run prompt again with Windows-r.
  2. Now run the following command to bring up the advanced version: Cleanmgr /sageset:65535 & Cleanmgr/sagerun:65535
  3. Just click ok afterwards to load the advanced Disk Cleanup Tool interface.


Note that not all items are selected by default, which means that you need to look through the options to enable and disable items until you are satisfied with the selection.

How To Run The Advanced Disk Cleanup Version In Windows
Article Name
How To Run The Advanced Disk Cleanup Version In Windows
Find out how to run the built-in advanced cleanup tool of the Windows operating system to free up disk space by deleting temporary files.
Ghacks Technology News

Previous Post: «
Next Post: «


  1. Bolkotex said on July 22, 2021 at 1:23 pm

    Martin, you are missing one piece here:

    `Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535`

    Without second `cleanmgr`, windows is not executing this command entirely (`& /sagerun:65535` is not a command).

    1. Martin Brinkmann said on July 22, 2021 at 6:23 pm

      Hi, you are right, thank you!

  2. Ben said on May 15, 2017 at 11:33 am

    I remembered doing this a while ago but forgot the command so
    this article came up pretty high in google search along with others.
    I just wanted to point out after trying the command you mention I get,

    “The filename, directory name, or volume label syntax is incorrect.”

    The correct command as mention by the other tech websites is,

    %SystemRoot%\System32\Cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535

  3. lonestar said on February 24, 2017 at 4:10 pm

    This article leaves a lot of unanswered questions!!! 1STAR

    1. Martin Brinkmann said on February 24, 2017 at 4:37 pm

      What’s missing in your opinion?

  4. martin said on June 19, 2016 at 8:01 am

    Need to be: “It don’t ask me what drive I want to clean up”

  5. martin said on June 19, 2016 at 7:56 am

    This all goes this fast that I don’t believe this advanced Disk cleanup does anything at all.
    It don’t ask me what drive I won’t to clean up.
    It don’t need any time at all to scan the disk for files that could be deleted.
    And even don’t need any time to delete them files finally.

    All this takes a reasonably amount of time in the default cleanup mode and about the same time
    in in the “cleanup system files” mode but, oddly enough, no time at all in the super advanced cleanup mode.
    How could this be ?

  6. oldtima said on January 17, 2012 at 9:52 pm

    ahh my old favourite !
    posted on how to geek website ;) lol

    ((last comment))

    good to see it again though :)

  7. Kay said on January 12, 2012 at 1:43 am

    Did anyone get feed back on which options are ok to check or clean, also with windows Vista is the link for Vista the best way to do the advanced disk clean up?


    1. Martin Brinkmann said on January 12, 2012 at 2:15 am

      There is nothing that its dangerous to delete. Please keep in mind though that you delete dump files which means that you cannot analyze them afterwards anymore.

      1. Kay said on January 12, 2012 at 8:31 pm

        Thank you for the reply, next question how do you know it worked? unlike the normal cleanup that would show a little bar all I get is a flash then the box is gone? ( sorry to ask such a silly question)
        Thank you

  8. VS Narayanan said on January 11, 2012 at 1:58 pm

    Hallow Sir,

    Happy New Year 2012 to all Ghacks Members, from VS Narayanan, T. Nagar, Chennai – Tamil Nadu.

    There is any chance, Bluestake for XP sp2. If any, please notify me by mail: [email protected]

    Thanking You,
    VS Narayanan
    Chennai – 17

  9. Paul said on January 10, 2012 at 6:15 pm

    Any possibility that article titles could mention which version(s) of Windows the article applied to please?

  10. WebHybrid said on January 9, 2012 at 9:06 pm

    Interesting that this has always been there hidden away, but could we get some expert guidance about which options are safe, or I might say, safest?

    (Similarly I have been afraid, all these years, to muck around much with the Windows ‘System’ and ‘Advanced’ options in CCleaner for same reason: lack of understanding about the consequences.)

  11. odio said on January 9, 2012 at 8:11 pm

    hey martin, you should take a look at this userscript:

    Youtube Switch Back To Old Design

    this is saving my life with youtube……

    1. Martin Brinkmann said on January 9, 2012 at 9:10 pm

      Odio thanks, will take a look.

  12. ilev said on January 9, 2012 at 8:07 pm

    Windows 7 – Advanced Disk Cleanup – Create Shortcuts Without A Batch File!

    1. WebHybrid said on January 9, 2012 at 9:51 pm
    2. Midnight said on January 9, 2012 at 8:13 pm

      Thanks a heap, odio. This will certainly help! :)

  13. Midnight said on January 9, 2012 at 7:46 pm

    Follow up!

    The command that you indicated above:

    Cleanmgr /sageset:65535 & /sagerun:65535
    Brings up the new Advanced Disk Cleanup Tool, Minus the Options to Uninstall Programs and Delete Previous Restore points and all that’s left is to Click O.K., which does nothing but shut down Disk Cleaner.

    When loading the Disk Cleanup the 2nd time, the additional features are no longer there!
    Does that mean that the above command has to be loaded each and every time I want to run Disk Cleanup or is there a Registry Fix to make the Advanced Clean up permanent?

    1. Martin Brinkmann said on January 9, 2012 at 9:09 pm

      Yes you need to run it all the time. You can however use Ilev’s suggestion and create a shortcut for it.

  14. Midnight said on January 9, 2012 at 7:32 pm

    Great tip, Martin! I didn’t know about that one.

    Question is, What took you so long to tell us about it? LOL!!!

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.