Cleaning a temporary folder

JaliJali Posts: 1,769 F-Secure Employee



This article explains how you can clean a temporary folder containing malware.




In many cases, infected files and archives are detected inside temporary folders. These folders are used to store files used for a short period of time, e.g. during the installation of software. The location of these folders varies and can be one of the following:

  • C:\Documents and Settings\<user_name>\Local Settings\Temp
  • C:\Documents and Settings\Guest\Local Settings\Temp
  • C:\Documents and Settings\Administrator\Local Settings\Temp
  • C:\Users\<user_name>\AppData\Local\Temp (Windows Vista)

where <user_name> is your Windows user name.


Removing infection


Make sure Windows Explorer is configured to show all files, including system and hidden files:

  1. In Windows Explorer, select Folder Options from the Tools menu.
  2. Click on the View tab and select the Show hidden files and folders option.

To empty the temporary folders:

  1. Go to the temporary folder where the infection was detected.
  2. Select all files and subfolders and press the Delete button on the keyboard, or select Delete from the File menu.

Warning! Be careful when deleting files. Make sure that you are deleting files inside the temporary folders only. Otherwise you may damage your system.


This article in other languages:
Finnish, Swedish, German, French, Japanese, Italian, Danish, Norwegian, Dutch, Polish

Sign In or Register to comment.