1 Jul 2019

How to delete Temporary Files and Unnecessary System Files in Windows 10 Automatically and Manually

How to delete Temporary Files and Unnecessary System Files in Windows 10 Automatically and Manually

How to delete Temp Files and Unnecessary System Files in Windows 10
Delete Temporary Files and Unnecessary System Files in Windows 10 Manually
Method M1
Delete temporary Files and Unnecessary System Files in Windows 10 using Disk Cleanup tool
  • Go to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools
  • Launch Disk Cleanup tool
(OR)
Delete temporary Files and Unnecessary System Files in Windows 10 using Windows Explorer
  • Go to File Explorer (This PC) and Right click on C drive ---Proprieties---Click on Disk Cleanup
  • How to use Disk Cleanup in Windows 10 show below for better understanding....
Method M2
Delete temporary Files and Unnecessary System Files in Windows 10 using Start Menu
  • Go to Settings---System---Storage---This PC---Temporary files---tickmark on Temporary files---Remove files.
Method M3 
Delete temporary Files and Unnecessary System Files in Windows 10 using Command Prompt
  • Go to C:\WINDOWS\system32  (or) Search cmd in Start menu
  • Right click on cmd  (Run as Administrator)
  • Type: del /f /s /q %temp%
Method M4
Delete temporary Files and Unnecessary System Files in Windows 10 Manually
Delete temporary Files and Unnecessary System Files in Windows 10 Using %temp%
  • Go to Search menu and type %temp%
OR
  • C:\Users\XXXX\AppData\Local\Temp
  • XXXX is your profilename
  • System Temporary Files 
  • Go to C:\Windows\Temp
  • Control+A  Delete 
Delete Temporary Files and Unnecessary System Files in Windows 10 Automatically
Method A1
Delete temporary Files and Unnecessary System Files in Windows 10 using Storage Sense
  • Go to Settings---System---Storage---Turn on Storage Sense 

Method A2
Delete temporary Files and Unnecessary System Files in Windows 10 using Script code
  • Go to C:\Users\xxxx\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
  • xxxx is your Profile name
  • Create new Text Document and write 
rd %temp% /s /q
    md %temp%


    • Save as deletetempfiles.bat 
    • .bat file format
    • Every time your PC restarts batch file will clean your temp files
    Method A3
    Delete temporary Files and Unnecessary System Files in Windows 10 using Script Code + Group Policy



  • Create new Text Document and write

  • @ECHO off 
    DEL /F /S /Q %TEMP%

    • Save as cleanTemp.cmd file format in Desktop
    • Copy cleanTemp.cmd to C:\WINDOWS\System32\GroupPolicy\User\Scripts\Logon
    • Go to Edit Group Policy
    • Open Run Command ( Win+r )  type as gpedit.msc


    Go to User Config---Windows Settings---Scripts (Logon/Logoff)
    • Go to Logon Proprieties
    • Add Script Parameters
    schtasks /create /tn "Clean Temp Files" /tr c:\path\to\script\cleanTemp.cmd /sc onlogon
    • Browse Script Name file location as 
    • C:\WINDOWS\System32\GroupPolicy\User\Scripts\Logon
    • Every time your PC restarts batch file will clean your temp files

    Post a comment

    Whatsapp Button works on Mobile Device only

    Start typing and press Enter to search