How to delete temporary files using Disk Cleanup on Windows 10

February 2023 · 6 minute read
How to delete temporary files using Disk Cleanup on Windows 10

XINSTALL BY CLICKING THE DOWNLOAD FILE

To fix various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:
  • Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  • Click Start Scan to find Windows issues that could be causing PC problems.
  • Click Repair All to fix issues affecting your computer's security and performance
  • In order to install or run certain applications, Windows often creates temporary files on your computer.

    Temporary files have their purpose, but once you’re done using the application, there’s usually no more reason to keep the files.

    These files can sometimes take a lot of space, and today we’re going to show you how to remove these files using Disk Cleanup on Windows 10.

    How can I delete temporary files using Disk Cleanup?

    1. Use Disk Cleanup to remove temporary files

    1.1. Start Disk Cleanup from the menu

  • Press Windows Key + S and enter disk cleanup.
  • Choose Disk Cleanup from the menu.
  • When the Disk Cleanup tool starts, select your system drive. By default it should be C:.
  • Disk Cleanup will now scan your system drive for any unnecessary files.
  • Check Temporary files and click on OK

  • Wait while the tool removes the selected files from your PC.
  • After the process is finished, all temporary files should be removed from your PC.

    1.2. Start the Disk Cleanup tool by using the Run dialog.

  • Press Windows Key + R and enter cleanmgr.
  • Now press Enter or click OK.
  • Optional: You can also choose the drive you want to scan right from the Run dialog. To do that, simply enter cleanmgr /d C and Disk Cleanup will automatically scan your C drive.
  • 1.3. Start Disk Cleanup by using Command Prompt or PowerShell.

  • Press Windows Key + X to open the Win + X menu and choose Command Prompt (Admin).
  • If Command Prompt isn’t available, you can use PowerShell instead.
  • Enter cleanmgr command to start Disk Cleanup. You can also use cleanmgr /d C command to automatically scan the C drive.
  • 1.4. Start Disk Cleanup is to use the Settings app

  • Press Windows Key + I to open the Settings app.
  • In the Find a setting field enter disk and choose to Free up disk space by deleting unnecessary files.
  • 1.5. Start Disk Cleanup using the Control Panel.

  • Press Windows Key + S and enter control panel.
  • Now choose Control Panel from the list.
  • Go to the Administrative Tools section.
  • Locate and run Disk Cleanup.
  • 1.6. Start Disk Cleanup by searching for it in Control Panel.

  • Type disk cleanup in the search bar at the top right corner.
  • Choose Free up disk space by deleting unnecessary files option.
  • 1.7. Start Disk Cleanup simply by locating your hard drive.

  • Navigate to This PC.
  • Locate your system drive, by default it should be a C drive.
  • Right-click it and choose Properties.
  • When the Properties window opens, click on Disk Cleanup.
  • Note: After you start Disk Cleanup, simply follow the instructions from the beginning of this solution to remove the temporary files.

    2. Make Disk Cleanup remove all temporary files

  • Press Windows Key + R and enter regedit.
  • Press Enter or click OK.
  • Optional: Modifying the registry can cause problems, especially if you don’t do it properly, therefore it’s highly recommended to back it up. To do that, go to File and select Export.
  •  Set Export range as All and enter the desired file name. Choose a safe location and click on Save.
  • In the left pane navigate to HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerVolumeCachesTemporary Files.
  • In the right pane, double click on LastAccess DWORD.
  • Set the Value data to 0 or to any other value less than 7.
  • Click on OK to save changes.
  • Note: Keep in mind that you won’t be able to delete protected files or files that are in use, but most other files should be deleted without any problems.

    3. Use a trird-party software

    The simplest and fastest way to remove temporary files from your PC is to use software like Ashampoo WinOptimizer.

    Expert Tip: Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken. We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
    Click here to download and start repairing.

    This is a useful tool that will scan your drive and allow you to choose the type of files you wish to remove. There is a wide array of files to choose from, and among these files, there are also temporary files.

    Ashampoo WinOptimizer comes with a complete tuneup and 37 cleaning suite modules that will make sure your device is kept secure with deep scans and repair tools.

    Moreover, if you accidentally delete files or if you want to permanently get rid of others, this system optimization software will do the job in no time.

    Here are some of its key features

    Get Ashampoo WinOptimizer

    4. Automate Disk Cleanup

  • Press Windows Key + R and enter cleanmgr /d c: /sageset:1000.
  • Click OK or press Enter.
  • Check Temporary files and Temporary Internet Files options and click on OK.
  • Now press Windows Key + R again and enter cleanmgr /sagerun:1000.
  • Press Enter or click OK to run the command.
  • After running this command, temporary files should be deleted automatically.

    This is one of the fastest ways to delete temporary files using Disk Cleanup, but as you can see, it requires some configuration before you can use it.

    And there you have a few methods that will help you delete temporary data files. If you have other suggestions or recommendations, make sure to let us know in the comments section below.

    ncG1vNJzZmivmaOxsMPSq5ypp6Kpe6S7zGibnqSVqbJuwMSmp6iqkafGbrDIrKJmm5yarq%2FBz2g%3D