I wanted to do disk cleanup myself and found a large folder in %localappdata% called Temp. I wondered if deleting the contents of it won't harm my computer. All I know about "temp" folders is that there are more of them. Is it safe to delete a "temp" folder's contents?

2 Answers 2


You can delete the files in local appdata .. \temp with no harm. If any file is busy by an app, it will not allow deletion. Do not force it.

You can also delete files in c:\windows\temp with the same notes as above. Do not force deletion of any file in appdata temp or windows temp.

Once deleted, do not forget to empty the recycle bin.

You can also run Admin Tools, Disk Cleanup and use the Cleanup System files option.

  • Also, my recycle bin empties every time I delete a file. Thanks. Jul 20, 2020 at 6:48

As the name suggests, %localappdata%\Temp is a folder where any app can store temporary files.

Normally, apps should clean up after themselves by removing any temporary files they create. However, they may fail to do so, perhaps if they encounter unexpected setup errors, or if your computer crashes for some unrelated reason while they are running.

The only thing to be careful of is that an app may create temporary files and expect to find them after a reboot, so as to complete a setup or uninstall you ran. In this scenario, if you had cleaned up by deleting temporary files, the app would then not be able to complete the setup/install as you would have removed files that were not yet finished with.

So yes, as long as you perform a clean boot first, you can delete any or all contents of %localappdata%\Temp (although you should keep the folder itself as it's a Windows folder).

  • 4
    I usually assume I can delete any file in my temp folder that has a date & time stamp before I started the PC. If it was running all the time I would probably say the time stamp must be more that 24 hours ago. To be sure I would reboot first. Jul 19, 2020 at 15:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.