Delete All Temp Files Improve Performance

Clear Temp files can have a great impact on system performance, disk space usage, privacy, security, and stability. Regular maintenance and proper management of these files are essential to maintain a healthy and efficient Windows system. Temporary files in Windows are files that are created and used by various processes and applications for the temporary storage of data. These files serve various purposes and can have both positive and negative effects on the system.

Performance Impact

Windows temp files can impact system performance in several ways. When numerous temporary files accumulate, they can consume a significant amount of disk space. This can lead to decreased storage capacity and slower overall performance, particularly if the system drive is running low on free space. Moreover, excessive temporary files can cause increased disk fragmentation, resulting in longer file access times.

Privacy and Security Risks

Windows temp files can contain sensitive information, such as temporary copies of documents or login credentials. If these files are not deleted securely, they can pose privacy and security risks. Unauthorized access to these files can potentially expose sensitive data to malicious actors. Additionally, temp files can be exploited by malware to store and execute malicious code, making proper management crucial for maintaining system security.

Follow the Instruction

That’s why it is very important to delete the temporary files in Windows 10, 11, 8.1, 7. In this post, we will tell you some ways by which you will be able to delete all temp files easily with 1 click.

  1. Firstly open Notepad using Win + R and type Notepad and hit enter.

2. Copy the below script and paste it into Notepad and save this file Ctrl+S and change Save as type: to All Files (*.*) and set File name: as you want but at the end of the name make sure .bat type properly then click on save button.

erase "%TEMP%\*.*" /f /s /q

for /D %%i in ("%TEMP%\*") do RD /S /Q "%%i"

erase "%TMP%\*.*" /f /s /q

for /D %%i in ("%TMP%\*") do RD /S /Q "%%i"

erase "%ALLUSERSPROFILE%\TEMP\*.*" /f /s /q

for /D %%i in ("%ALLUSERSPROFILE%\TEMP\*") do RD /S /Q "%%i"

erase "%SystemRoot%\TEMP\*.*" /f /s /q

for /D %%i in ("%SystemRoot%\TEMP\*") do RD /S /Q "%%i"

@rem Clear IE cache - (Deletes Temporary Internet Files Only)

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

erase "%LOCALAPPDATA%\Microsoft\Windows\Tempor~1\*.*" /f /s /q

for /D %%i in ("%LOCALAPPDATA%\Microsoft\Windows\Tempor~1\*") do RD /S /Q "%%i"

ECHO **** Clearing Chrome cache
taskkill /F /IM "chrome.exe">nul 2>&1

set ChromeDataDir="C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default"
set ChromeCache=%ChromeDataDir%\Cache>nul 2>&1  
del /q /s /f "%ChromeCache%\*.*">nul 2>&1    
del /q /f "%ChromeDataDir%\*Cookies*.*">nul 2>&1    
del /q /f "%ChromeDataDir%\*History*.*">nul 2>&1    

set ChromeDataDir="C:\Users\%USERNAME%\Local Settings\Application Data\Google\Chrome\User Data\Default"
set ChromeCache=%ChromeDataDir%\Cache>nul 2>&1
del /q /s /f "%ChromeCache%\*.*">nul 2>&1   
del /q /f "%ChromeDataDir%\*Cookies*.*">nul 2>&1    
del /q /f "%ChromeDataDir%\*History*.*">nul 2>&1    

ECHO **** Clearing Chrome cache DONE

@rem Clear Firefox cache

erase "%LOCALAPPDATA%\Mozilla\Firefox\Profiles\*.*" /f /s /q

for /D %%i in ("%LOCALAPPDATA%\Mozilla\Firefox\Profiles\*") do RD /S /Q "%%i"

del /s /f /q C:\Windows\Prefetch\*.*


3. Goto the path which has the file saved and Right Click on the file Run as Administrator.

this script removes all temp files folder like temp, %temp%, and prefetch and also removes cache, cookies, and history of your browsers.

After using this method the performance of your system will improve.

Read more.

1 thought on “Delete All Temp Files Improve Performance”

Leave a comment