Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How do files in ...\AppData\Local\Temp get deleted?

21 Dec 2015   #11

W7 Pro SP1 64bit

Quote   Quote: Originally Posted by UsernameIssues View Post
... apps that are designed to delete some or all temp files (e.g. CCleaner) will delete temp file created by other apps....
Quote   Quote: Originally Posted by JohnHa View Post
...I tried CCleaner, which I have, but the as delivered configuration it does not clear the ...\AppData\Local\Temp\ folder. I realise that other cleaning utilities might clear the folder.
The "as delivered configuration" should clear the ...\AppData\Local\Temp\ folder...
...but only if the files are older than 24hrs old.

How do files in ...\AppData\Local\Temp get deleted?-cc1.png

How do files in ...\AppData\Local\Temp get deleted?-cc2.png

How do files in ...\AppData\Local\Temp get deleted?-cc3.png

If I clear the option highlighted above, the files shown below will be deleted:

How do files in ...\AppData\Local\Temp get deleted?-cc4.png

You should tell forum members to avoid clearing the folder via CCleaner.

My System SpecsSystem Spec
21 Dec 2015   #12

Windows 7 Home 64 bit

Thank you for that correction. I had cleaned it manually myself before starting testing, so as not to confuse myself, so when I ran the CCleaner test, everything was less than 24 hours old. I have just placed an old file in it and CCleaner does indeed delete it.
My System SpecsSystem Spec
21 Dec 2015   #13

W7 Pro SP1 64bit

No problem.

Let's hope that you can help others not lose their data in that temp folder
My System SpecsSystem Spec

06 Nov 2018   #14

Win 10
Found it! It's Norton.

@JohnHa: Did you ever find the solution?
I have exactly the same problem, and in my case it is caused by Norton Antivirus.

At irregular times, the temporary files of an application I develop get removed while it is running, and data are lost. Today it happened again, I once again searched the web for help and found this page, which notes that running Disk Cleanup will clear AppData temp folders. This alerted me to the fact that Norton AntiVirus had notified running in the background to improve system performance...

So I again started my application, opened the temp folder to watch, started Norton manually, ran Performance > File Cleanup and ... zap! Gone were the temp files.

This also explains why most of my users did not report the problem: fortunately most do not use Norton. Better antivirus software probably looks at the timestamps before removing temp files.

My solution will be to set work files read-only each time they are closed. (The application removes the temp files itself when ready.)
My System SpecsSystem Spec
06 Nov 2018   #15

Windows 7 HP 64

My not be a good idea. To set work files read-only each time they are closed my prevent them to be updated. And Norton may also delete read-only and even system and hidden.
If the problem is Norton, disable the function on it.
My System SpecsSystem Spec
06 Nov 2018   #16

Win 10

My application will set read-write permission when needed. Norton does not remove read-only files (I tested this). Also note that disabling the function in Norton is not the solution: I would have to tell all users of my application to do that.
My System SpecsSystem Spec

 How do files in ...\AppData\Local\Temp get deleted?

Thread Tools

Similar help and support threads
Thread Forum
No AppData\Local\Temp\trachme64.dll
On switching on my daughters slow laptop it always comes up with this message. There was a problem starting C:Users\Emily|Appdata\Temp\trachme64.dll The specified module could not be found
Performance & Maintenance
What is C:\Users\PC\AppData\Local\Temp ? :)
While i was exploring windows explorer, i came up to this folder C:\Users\PC\AppData\Local\Temp What does it contain? What are tmp, old, mtx, and text document files? Is it ok to delete this folder? (I don't know what came up to my mind, i just feel i want to delete some stuff on my computer...
General Discussion
System cannot find AppData\Local(\Temp).
There for I am having installation problems. It appears to deleted. What do I do?
Installation & Setup
SSD Optimisation - move Appdata\Local\Temp?
Hi all - just fitted a Kingston SSD and done a clean install of 7UP. In order to minimse read/writes on the drive I have moved the following to other Hdd's: Windows temp Browser caches and temps App scratchdisks and temp files Windows Pagefile (separate partition on other drive) I would...
Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:21.
Twitter Facebook Google+