Type the following: cleanmgr /D C /sageset:65535 & cleanmgr /D C /sagerun:65535.
To bypass the used space calculation, you need to use a special command line argument, as described below. How to run Disk Cleanup faster without having it calculate how much disk space you will free This will save you time and a few additional mouse clicks. Running it as administrator is the same as starting it normally and then pressing the 'Clean up system files' button. All you need to do is to run the Disk Cleanup tool as administrator. There is a trick which allows you get the extended mode of Disk Cleanup right after it starts. How to run Disk Cleanup faster without having it calculate how much disk space you will free How to directly open Disk Cleanup in system files mode