Hi,
Thank you for writing to Microsoft Community Forums.
We understand the concern as you have deleted %temp%, temp and prefetch files by mistake and you want to know if it is harmful.
In this scenario, let me give you a clear picture of what %temp%, temp and prefetch files do.
Temp & %Temp%
Temporary Files in Windows are those junk files whose use is only temporary and become redundant once the task in hand is completed. Such temporary files are created to hold data temporarily while a file is being created or processed or used.
These files are created by the operating system during the normal course of its process, when there may not be enough memory allocated for the task.
Software that uses large amounts of data like Graphics, Video, or Media editing software also creates temporary files. Such created temporary files are often, left behind even when the task is over, leading to their wasting disk space.
Prefetch
Prefetch is a system service that works in the background taking up no power from the CPU. This service aims to improve the application loading time on a Windows system.
It is built into the Windows OS to improve the user experience. It is not a necessary system. So if you want to disable it, there will be no issues.
It creates a cache file where the resource information is stored. As soon as that application is launched, Windows comes back to this cache file and using the already fetched resources, and it ends up opening the application faster than usual.
These files are not so important as they get created when you run a program or app on your PC. So you need not to worry about deleting the file.
Hope it helps,
Aditya Roy
Microsoft Community – Moderator