Windows 10 会在您使用计算机时创建各种临时文件。这些可以是任何东西,从缓存的系统和应用程序数据、错误报告、更新文件到浏览数据。临时文件不仅有助于加快处理速度,而且其中一些文件在解决与系统相关的问题时也发挥了作用。
但是,大多数临时文件类型会存在很长时间,最终可能会占用大量存储空间。如果您总是用完可用空间(running out of free space),您必须自己定期删除这些文件。
您可以使用“设置”(Settings)应用、磁盘清理(Disk Cleanup)工具或文件资源管理器(File Explorer)删除 Windows 10 计算机上的临时文件。此外,您可以利用称为Storage Sense(Storage Sense)的内置功能来自动执行该过程。
使用设置应用程序(Use Settings App)删除临时(Delete Temporary)文件
Windows 10 设置(Settings)应用程序的存储管理(Storage Management)屏幕允许您查看和删除计算机上的大多数临时文件类型。如果磁盘空间开始不足,快速访问此屏幕应该可以帮助您快速释放一些存储空间。
1. 打开开始(Start )菜单并选择设置(Settings)。
2. 选择系统(System)。
3. 切换到存储(Storage )侧选项卡。
4. 选择临时文件(Temporary files)。稍等(Wait)片刻,直到“设置”(Settings)应用完成在您的计算机上加载临时文件类型列表。
5. 选中您要删除的每个临时文件类型旁边的复选框。您可以看到每个选项旁边列出的潜在空间节省量。您必须阅读每种文件类型的说明,以免最终删除任何重要内容。
例如,Windows 10 将您的“下载(Downloads )”文件夹列为临时位置。如果其中有任何重要文件,最好不要选中它旁边的框。
此外,如果您希望可以选择原封不动地回退到以前版本的Windows 10 ,请不要选中(Windows 10)以前版本的 Windows。(Previous version of Windows)但是,只有在过去十天内 升级Windows 10时,您才会看到它。
注意:(Note: )Internet 临时文件(Temporary Internet Files)列表包括与Microsoft Edge相关的浏览数据。您必须单独清除第三方 Web 浏览器中的浏览器缓存。(clear browser caches in third-party web browsers)
6. 选择屏幕顶部的删除文件(Remove Files)按钮。Windows 10 应立即开始删除您选择的文件类型。
使用磁盘清理工具(Use Disk Cleanup Tool)删除临时(Delete Temporary)文件
除了设置(Settings)应用程序的存储管理(Storage Management)屏幕外,Windows 10 还配备了磁盘清理(Disk Cleanup)工具。它看起来有些过时了。但是,它通常会列出您在“设置”(Settings)应用程序中可能找不到的临时文件类型。
1. 按Windows + R打开运行框。
2.输入cleanmgr.exe并选择OK。
3.磁盘清理(Disk Cleanup)中的默认视图列出了您通常会在设置(Settings)应用程序中找到的所有形式的临时文件类型(下载(Downloads)除外) 。要显示其他文件类型,请选择清理系统文件(Clean up system files )按钮。
4.磁盘清理(Disk Cleanup)自动更新后,选中要删除的每个临时文件类型旁边的框。
每当您选择特定类型的数据时,您都可以看到说明。阅读它以确保您没有删除任何重要的内容。
例如,设备驱动程序包包含(Device driver packages )回滚硬件驱动程序(roll back hardware drivers)所需的数据——只有在您没有任何计算机问题时才选择它。
5. 选择OK,然后选择Delete Files以删除选定的文件。
此外,您可以运行磁盘清理的扩展版本(extended version of Disk Cleanup)(它会显示更多形式的临时文件类型)。要访问它,请打开命令提示符(Command Prompt)控制台(按Windows + S并搜索命令提示符(command prompt))并运行以下命令:
cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535
扩展的磁盘清理(Disk Cleanup)工具包含文件类型,例如旧程序设置文件和Chkdsk文件((Chkdsk)检查磁盘(Check Disk)实用程序中损坏的数据片段),您可以删除这些文件类型以释放额外的磁盘空间。
使用文件资源管理器(Use File Explorer)删除临时(Delete Temporary)文件
设置(Settings)应用程序和磁盘清理工具(Disk Cleanup Tool)通常不会删除操作系统和在其上运行的应用程序使用的所有临时文件。如果您想彻底,您可以访问包含这些文件的两个主要位置并直接删除它们。但是,这些文件夹会很快再次填满,所以如果您只想暂时释放一些额外的存储空间,请继续。
1. 保存您的工作并退出所有打开的应用程序。
2. 按Windows + R打开运行框。
3.输入%temp%并选择OK。
4. 按Ctrl + A选择目录中的所有文件。然后,右键单击并选择Delete。
注意:(Note:)如果操作系统通知它不能删除某些文件,请选择跳过(Skip)。
5. 再次打开运行(Run)框。然后,输入temp并选择OK。
6.删除(Delete)目录内的所有文件和文件夹。再次(Again),跳过任何您无法删除的文件。
7. 右键单击桌面上的回收站图标,然后选择(Recycle Bin)清空回收站(Empty Recycle Bin)。
使用 Storage Sense(Use Storage Sense)删除临时(Delete Temporary)文件
您可以通过激活Storage Sense将(Storage Sense)Windows 10配置为自动清除临时文件。您不仅要打开它,还必须配置该功能如何在您的计算机上自动运行。
1. 打开开始(Start )菜单并选择设置(Settings)。
2. 选择系统(System)。
3. 切换到存储(Storage )侧选项卡。
4. 选择配置存储感知或立即运行(Configure Storage Sense or run it now)。
5. 打开Storage Sense下的开关并选择您希望它运行的频率。您可以坚持默认在可用磁盘空间不足期间(During low free disk space)设置或将其更改为每天(Every day)、每周(Every week)或每月(Every month)。
6.向下滚动(Scroll)屏幕并指定Storage Sense清理回收站(Recycle Bin)和下载(Downloads)文件夹的频率。如果您不希望它删除任何文件下载,请确保选择从不(Never)。
如果您使用具有按需文件(Files On-Demand)功能的云存储服务(例如OneDrive或 iCloud Drive),您还可以指定Storage Sense清除任何本地缓存文件的频率。
Storage Sense 将自动删除 Windows 10 计算机上的临时文件,具体取决于您的设置方式。您也可以随时通过选择位于同一屏幕中的“立即清理”选项来运行它。(Clean now )
存储不是一个问题(Concern)?您仍然应该删除临时(Delete Temporary)文件
即使您在存储方面没有任何问题,每隔一段时间删除一次Windows 10中的临时文件仍然是一个好主意。(Windows 10)这应该可以防止过时的文件在以后造成任何问题(prevent outdated files from causing any problems)。但是,您不必在整个事情上做得过火。只需将Storage Sense设置为每月进行一次大扫除,您应该会很好。
How to Delete Temporary Files in Windows 10
Windows 10 creates all sorts of temporarу files as you use your computer. Theѕe could be anything from cachеd system and application data, error reports, update files, tо browsіng data. Not only do temporary files help speed things up, but some of them also play a role when troubleshooting system-related issues.
However, most temporary file types linger around for a long time and can end up eating a hefty chunk of storage. If you’re always running out of free space, you must take it upon yourself to delete these files regularly.
You can delete temporary files on your Windows 10 computer using the Settings app, the Disk Cleanup tool, or File Explorer. Additionally, you can utilize a built-in functionality called Storage Sense to automate the procedure.
Use Settings App to Delete Temporary Files
The Windows 10 Settings app’s Storage Management screen allows you to view and delete most temporary file types on your computer. If disk space starts to run low, a quick visit to this screen should help you free up some storage quickly.
1. Open the Start menu and select Settings.
2. Select System.
3. Switch to the Storage side-tab.
4. Select Temporary files. Wait for a moment until the Settings app finishes loading a list of temporary file types on your computer.
5. Check the boxes next to each temporary file type that you want to remove. You can see the amount of potential space savings listed next to each of them. You must read the description of each file type so that you don’t end up deleting anything important.
For instance, Windows 10 lists your Downloads folder as a temporary location. If you have any important files in it, it’s best to leave the box next to it unchecked.
Additionally, keep Previous version of Windows unchecked if you want to have the option to fall back to the previous version of Windows 10 intact. You’ll only see it if you upgraded Windows 10 within the last ten days, however.
Note: The Temporary Internet Files listing includes browsing data related to Microsoft Edge. You must clear browser caches in third-party web browsers separately.
6. Select the Remove Files button to the top of the screen. Windows 10 should start deleting the file types that you selected immediately.
Use Disk Cleanup Tool to Delete Temporary Files
Aside from the Settings app’s Storage Management screen, Windows 10 also comes with a Disk Cleanup tool. It looks somewhat dated. But, it usually lists temporary file types that you may not find listed within the Settings app.
1. Press Windows+R to open the Run box.
2. Type cleanmgr.exe and select OK.
3. The default view in Disk Cleanup lists all forms of temporary file types (except for Downloads) that you’ll typically find in the Settings app. To reveal additional file types, select the Clean up system files button.
4. After Disk Cleanup updates itself, check the boxes next to each temporary file type you want to delete.
You can see a description whenever you select a specific type of data. Read it to ensure that you aren’t deleting anything important.
For instance, Device driver packages contains data needed to roll back hardware drivers—only select it if you don’t have any computer issues.
5. Select OK, and then select Delete Files to remove the selected files.
Additionally, you can run an extended version of Disk Cleanup (which reveals even more forms of temporary file types). To get to it, open the Command Prompt console (press Windows+S and search for command prompt) and run the following command:
cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535
The extended Disk Cleanup tool contains file types such as old program setup files and Chkdsk files (corrupted data fragments from the Check Disk utility) that you can delete to free up extra disk space.
Use File Explorer to Delete Temporary Files
The Settings app and the Disk Cleanup Tool usually don’t delete all temporary files used by the operating system and the apps that run on it. If you want to be thorough, you can visit the two main locations that contain these files and delete them directly. However, these folders do fill up again quickly, so go ahead if you want to free up some extra storage for the time being only.
1. Save your work and exit all open applications.
2. Press Windows+R to open the Run box.
3. Type %temp% into it and select OK.
4. Press Ctrl+A to select all files within the directory. Then, right-click and choose Delete.
Note: If the operating system notifies that it can’t delete certain files, select Skip.
5. Open the Run box again. Then, type temp and select OK.
6. Delete all files and folders within the directory. Again, skip any files that you can’t remove.
7. Right-click the Recycle Bin icon on the desktop and select Empty Recycle Bin.
Use Storage Sense to Delete Temporary Files
You can configure Windows 10 to clear temporary files automatically by activating Storage Sense. Rather than merely turning it on, you must also configure how the functionality works automatically on your computer.
1. Open the Start menu and select Settings.
2. Select System.
3. Switch to the Storage side-tab.
4. Select Configure Storage Sense or run it now.
5. Turn on the switch under Storage Sense and select how often you want it to run. You can stick to the default During low free disk space setting or change that to Every day, Every week, or Every month.
6. Scroll down the screen and specify how often Storage Sense should clean the Recycle Bin and Downloads folder. If you don’t want it to delete any file downloads, make sure to select Never.
If you use a cloud storage service with Files On-Demand capabilities (such as OneDrive or iCloud Drive), you can also specify how often Storage Sense should clear any locally cached files.
Storage Sense will automatically delete temporary files on your Windows 10 computer, depending on how you’ve set it up. You can also run it whenever you want by selecting the Clean now option located within the same screen.
Storage Not a Concern? You Should Still Delete Temporary Files
Even if you don’t have any issues storage-wise, it’s still a good idea to delete temporary files in Windows 10 once every while. That should prevent outdated files from causing any problems further down the road. However, you don’t have to go overboard with the whole thing; just set up Storage Sense to go on a cleaning spree once every month, and you should be good.