[Tried and True] How to Automatically Delete Temp Files in Windwos 7/8/10

Brithny updated on Dec 29, 2018 to Deleted Recovery | How-to Articles

Summary

Do you need to delete some temporary files in Windows? Those stored in the temp folder are not needed and can be deleted. This is how to do it. Follow this post to delete all the temporary files and folders you have selected without difficulty.

PAGE CONTENT:
Temp Files Are Taking Too Much Space! How to Auto-Delete Them
Method 1. Create a Batch File to Automatically Clean Temp Folder
Method 2. Automatically Delete Temp Files in Windows 10
Extra Tips: Recover Important Temp Files

Temp Files Are Taking Too Much Space! How to Auto-Delete Them

Windows always have temp files and other junk that's just taking up space on your hard drive. We've covered several ways to clean up the junk by using Disk Cleanup to using a third-party utility like CCleaner. Most of the methods in that article end up cleaning out the Temp folder, but you might want to keep that folder as clean as possible. 

This article shows you how to automatically delete temporary files no matter they are from APPs, recycle bin or download folder, just follow these details below and you will be able to delete temporary files automatically.

Method 1. Create a Batch File to Automatically Clean Temp Folder

No matter you are using Windows 7 or Windows 10, you are able to auto delete temp files by creating a batch file. A lot of space can end up being saved on your hard drive by clearing out the Temp file. And if you shut down your PC every night, you can safely delete the temp files from the previous day during boot.

1. Open Notepad and type in the following:

rd %temp% /s /q

md %temp%

2. Now, save the file exactly as the path below:

%appdata%\microsoft\windows\start menu\programs\startup\cleantemp.bat

create a batch file to automatically delete temp files

That will create your batch file and save it inside the Startup folder.

After creating the batch file, you can reboot your PC and opened the Temp folder, you can see there are far fewer files than before.

Method 2. Automatically Delete Temp Files in Windows 10

With Windows 10 Fall Creators Update (version 1709), Microsoft introduced a new option in Storage sense to automatically delete files from the Downloads folder or delete temp files that are not using. The option, when turned on (turned off by default), automatically deletes unchanged files and temp files from the Downloads folder or Recycle Bin after 30 days. 

Notice:
While this is a handy option, please remember that Windows 10 automatically deletes all files (not just programs or any file type) that have not seen any changes over the past 30 days. So, you might lose important files. If you often save important files in the Downloads folder or Recycle Bin (which is not a good practice), this feature is not for you.

Step 1. Open Settings app. Navigate to System > Storage.

Step 2. In the Storage sense section, turn on the Storage sense feature by moving the slider to on position.

Step 3. Click Change how we free up space link. Once again, make sure that you have turned on Storage sense feature as mentioned in the first step.

auto delete temp files in Windows 10

Step 4. Turn on Delete temporary files that my apps aren't using option.

turn on auto delete temp files option

Then your Windows 10 will be able to delete temp files or other files automatically. 

Extra Tips: Recover Important Temp Files

If your Windows 10/8/7 delete some of your important files accidentally, you still have a chance to get them back. You can just try a free file recovery software from EaseUS. It allows you to restore up to 2GB files for free. You can directly download it here and recover automatically deleted files easily.

 

Step 1: Choose the location

Download and open the EaseUS Data Recovery Wizard. When you open it, you can see all of the disks and partitions on your computer, select the disk partition or storage location where you deleted your files.

select the location

Step 2: Click Scan

Click the "Scan" button. The scanning process starts as long as you click Scan.

click scan

Step 3: Click Recover

After the scanning process, click the "Deleted files" option on the left panel. You can see all of the deleted files, select the desired files.

Preview the wanted data and click "Recover" to navigate a secure location or device to bring the deleted files back. Click "OK" to finish.

click recover
 
 

100% of people found this article helful.

 

Frequently Asked Qusetions

1. Why cannot I recover 2GB data for free?

It is recommended to check the version installed is Free or Trial because they are different versions.

Trial has data preview function but cannot save any files, while the Free version enables to recover 2 GB files. The default free space is 500 MB and you may share the product on social media to get another 1.5 GB.

2. Why cannot the recovered files be opened?

A file is saved as 2 parts on the storage device: directory info (which is comprised by file name, time stamp and size info, etc.) and data content.

If the files with original file names and folder structures cannot be opened, one possible reason is the corrupted directory info. There is still a chance to recover the data content with the RAW Recovery method in our software.

3. Why isn't it suggested to recover the files back to the original drive?

The storage structure of the lost files would be altered or damaged by any changes on the drive. If you save the recovered files back to the same drive, the original data structures and data content would be corrupted or overwritten, which causes permanent data loss. So you should prepare another disk to save the files.

4. How can I check whether my data is recoverable or not before purchase?

The Free version helps you save 2GB files to better verify the recovery quality of our product before purchase.

5. How long does it take to scan the drive?

It strongly depends on the capacity of your hard drive and the performance of your computer. As reference,most drive recoveries can be completed in around 10 to 12 hours for a 1-TB healthy hard drive in general conditions.

About Data Recovery Wizard

It's super easy to recover 250+ types of files after deletion, disk formatting and virus infection. Click the links and compare the difference of each version.