Home  >  Article  >  System Tutorial  >  How to delete temporary files in Win10 system

How to delete temporary files in Win10 system

WBOY
WBOYOriginal
2024-05-30 10:01:28442browse

How to delete temporary files in Win10 system

# How to delete temporary files in Win10 system During the daily use of Windows 10 operating system, the system will automatically generate a large number of temporary files. Although these temporary files do not have much impact on system operation, they occupy valuable hard disk space. In order to keep the system clean, it is necessary to clean temporary files regularly. This article will introduce you how to delete temporary files in Win10 system. ## 1. How to find temporary files First, we need to find the temporary files in the system. Please follow the steps below: 1. Press the `Win R` key combination to open the "Run" dialog box, enter `temp`, and then click "OK". 2. In the opened folder, you can see all temporary files. These files usually have a `.tmp` or `.log` extension. ## 2. How to delete temporary files After finding the temporary file you want to delete, just hold down the left mouse button and drag it to the "Delete" icon on the desktop to delete it. If you want to delete these files in batches, you can follow the steps below: 1. Add the above path to the environment variables `TEMP` and `TMP`. This way, Windows will search for temporary files under these two paths. To add environment variables, right-click the Computer icon, select Properties, and then click Advanced System Settings. In the "System Properties" window, click the "Environment Variables" button. In the "User Variables" or "System Variables" area, find and double-click the `TEMP` and `TMP` variables respectively. In the "Variable Value" text box, change the values ​​of the two variables to the folder path you just created (for example: `C:\Users\username\AppData\Local\Temp`). Click OK to save changes. 2. After restarting the computer, press the `Win R` key combination to open the "Run" dialog box, enter `temp`, and then click "OK". At this point, all temporary files will appear on the screen. Select the file you want to delete, then hold down the left mouse button and drag it to the "Delete" icon on the desktop to delete it. ## 3. Notes 1. When deleting temporary files, please make sure you have closed all running programs, otherwise some data may be lost. 2. Please operate with caution to avoid accidentally deleting important files. If you're not sure whether a file can be deleted, back it up first by moving it to another location. 3. In an enterprise environment, specific types of temporary files, such as log files, cache files, etc., may need to be cleaned regularly. Please formulate appropriate cleaning strategies based on actual conditions.

The above is the detailed content of How to delete temporary files in Win10 system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn