Overview – Clean Temporary Files
It seems that you want to automate the task of cleaning temporary files on your computer so that you can focus on other important tasks without moving out of storage.
Data storage is already one of the biggest problems in computing. By default, Windows doesn’t delete the temporary files automatically, it becomes more terrible when your computer keeps storing temporary files in a bulk.
By the end of this article, you’ll be able to clean temporary files on your computer:
Method #1: Using Storage Sense
Step #1: Type and open the “Windows Settings” from the Start menu or press the “Windows + I” key combination.
Step #2: Select the “System” option from the left sidebar and click the “Storage” option.
Step #3: Toggle on the “Storage Sense” button and configure it depending on your preferences.
Read More: How To Enable and Configure Storage Sense
Method #2: Using Batch Script
Step #1: Right-click the desktop and create a new “Text Document” (NotePad) file from the context menu or open the notepad app from the Start menu.
Step #2: Type the following command and save the file in the desired location and exit:
del /s /f /q %userprofile%\Recent*.*
del /s /f /q C:\Windows\Prefetch*.*
del /s /f /q C:\Windows\Temp*.*
Step #3: Rename the file extension from “.txt” file extension to “.bat” (Batch File).
Step #4: Run the file as an administrator and the command prompt will run for a few seconds and your temporary files will be automatically deleted.
Method #3: Using Task Scheduler
You can use this method only if you’ve followed the steps in Method 2 above and created the batch file.
Step #1: Type and open the “Task Scheduler” app from the Start menu.
Step #2: Click the “Create Basic Task” option on the right sidebar.
Step #3: Add the task name and description (if any) and press the “Next” button.
Step #4: Set the time when you want to initiate the task automatically and press the “Next” button.
Step #5: In the “Action” tab, select the “Start a program” option.
Step #6: In the “Start a Program” tab, add the file path where you saved the BAT File (in the previous method) and press the “Next” button.
Step #7: Recheck your configurations and press the “Finish” button to clean the temp files automatically (depending on your custom settings).
Note: If the steps are correctly implemented, the scheduled task will work correctly. However, to delete the scheduled task, select the task name from the list of running tasks and click the “Delete” button on the right sidebar.
FAQs Related to Temporary Files
is it safe to delete temp files?
Yes, deleting temporary files in Windows is completely safe. In some cases, you may be unable to remove a few files because you are not an administrator or because such files are being created, written, and stored by the opened programs. In this scenario, simply open the file as an administrator or close the opened programs and remove the temp files.
We’ve covered how to auto clean temp files on Windows. To remove the temp files automatically, you can use any of the methods that you find to be the most convenient and easy to follow along.
Improve your computer’s storage-related problems by following the related articles below.
Clear 15-25 GB of storage by deleting a single unused file on your computer.
Completely Clear Cache and save space on your computer.
VRAM plays a major role in terms of the device’s performance. Check whether or not your version of VRAM is compatible with your device.