无论是与工作相关的文档和演示文稿,还是个人图片和文件,当您的Windows 10 计算机或设备(computer or device)空间不足时,您必须删除其中的一些。我们会定期删除文件,但是,我们当中没有多少人知道该过程是如何工作的,或者您可以通过多种方式删除文件。如果您想知道如何从Windows 10中删除文件,包括永久删除它们以使其无法再恢复,请阅读这篇文章:
提示(TIP):当您删除一个文件时,即使您使用永久删除选项,该文件仍然可以恢复。要了解原因,请阅读:删除的文件会怎样?为什么你可以恢复其中一些?
1.使用键盘快捷键删除(Delete)或永久删除文件
删除一个文件或一组文件的最简单方法是打开文件资源管理器并导航(File Explorer and navigate)到其位置。找到要删除的文件,然后单击或点击(click or tap)以将其选中。您可以通过按住CTRL(CTRL)键并按住它来选择多个文件。用鼠标单击要选择的文件。完成后松开CTRL键。
提示:(TIP:)要选择文件夹中的所有文件,请按键盘上的CTRL+A
要删除选定的文件并将其(它们)移动到回收站(Recycle Bin),请按键盘上的Delete键。
默认情况下,Windows 10 在您删除文件时不会要求确认,但如果您的回收站(Recycle Bin)配置为显示删除确认对话框(confirmation dialog),请按Yes确认该过程。
要在不移动到回收站(Recycle Bin)的情况下删除选定的文件,请按键盘上的SHIFT+Delete。
此操作会永久删除所选文件,并且 Windows 10 会在继续删除之前要求确认。当系统询问您“您确定要永久删除此文件吗?”时 (Are you sure you want to permanently delete this file?"),按是(Yes)。
该文件已从您的 Windows 10 PC 中消失,而未移至回收站(Recycle Bin)。只能使用Recuva等专用软件才能恢复。
2.使用右键菜单删除文件(Delete)
另一种方法涉及在文件资源管理器(File Explorer)中选择要删除的文件并右键单击(或按住)所选项目。在上下文菜单中,选择Delete。
此操作将所选文件移动到回收站(Recycle Bin),如果需要,可以从中恢复它们。它不会像其他方法那样永久删除文件。
3.从文件资源管理器(File Explorer)的功能区中删除(Delete)或永久删除文件
您还可以在文件资源管理器(File Explorer)中浏览到要删除的文件并选择它们。然后,单击或点击功能区上的“主页”(Home)选项卡,然后单击“删除(Delete)”按钮。此操作会删除所选项目并将它们移动到回收站(Recycle Bin)。
如果要永久删除文件,请选择它。在功能区的“主页”(Home)选项卡中,单击“删除(Delete)”按钮下方的箭头,而不是单击“删除(Delete)” ,然后选择“永久删除”。("Permanently delete.")
4. 使用PowerShell 或命令提示符(PowerShell or Command Prompt)永久删除文件
Windows 10 有一个可用于永久删除文件的命令,它可以在PowerShell和命令提示符(Command Prompt)中使用。根据您的喜好,启动命令提示符(Command Prompt)或打开PowerShell。然后,输入命令:del "path to file"。
例如,要删除D:驱动器上的sample.jpg文件,在Digital Citizen文件夹中,我们键入:del "D:\Digital Citizen\sample.jpg"。
按Enter 键(Enter)执行命令,文件被删除,无需任何确认。正如Microsoft 在此处(here)记录的那样,此命令可以与多个参数一起使用。最有趣的是/f,即使在处理通常无法删除的只读文件时也会强制删除。要使用此参数,请输入:del /f "path to file"。
不要忘记按Enter来执行命令。
注意:(NOTE:)使用命令行删除文件时,它们不会移动到回收站(Recycle Bin)。
5.使用专用软件永久删除文件
如果您想从 Windows 10 PC 中删除文件以使它们无法使用专门的文件恢复(file recovery)工具进行恢复,最好使用永久文件橡皮擦应用程序来删除它们。Eraser是一款出色的应用程序,适用于任何运行Windows的(Windows)PC 或设备(PC or device)。
您还可以在本文中找到类似的应用程序:8 个永久删除文件和文件夹的最佳免费数据擦除应用程序。
删除文件时的问题:文件正在使用中(Use)
删除文件时,您可能会遇到错误提示:“文件正在使用中。此操作无法完成,因为该文件是在……中打开的”,("File In Use. This action can't be completed because the file is open in…")后跟应用名称。如果你再试一次(Try Again),你会一遍又一遍地遇到同样的错误。
要解决此问题,您必须关闭错误消息(error message)中提到的应用程序。该应用程序使用您要删除的文件并保持打开状态以进行编辑。在这种状态下,无法删除文件。应用程序关闭且不再使用该文件后,删除过程(deletion process)将起作用。
如果关闭应用程序未达到预期结果,请重新启动 Windows 10(restart Windows 10)并重试。
您更喜欢哪种方法从Windows 10中删除文件?
现在您知道如何使用键盘、鼠标甚至PowerShell中的专用软件或命令(software or commands)来删除文件了。在关闭本指南之前,请告诉我们您喜欢哪种方法以及原因。你是键盘用户(keyboard user)吗?你喜欢用鼠标吗?或者也许是del命令?在下方发表评论(Comment),让我们讨论从Windows 10中删除文件的最佳方法。
5 ways to delete files (temporarily or permanently) in Windows 10
Whether it's work-related documentѕ and presentations оr personal pictures and files, when you run out of space on your Windows 10 computer or deνice, you have to delete some of them. We delete files regularly, and yet, not many of υs knоw how the process works or that there is more than one wаy yоu can delete files. If you want to know how to delete files from Windows 10, including permanently deleting them so thаt they can no longer be recoνered, read this article:
TIP: When you delete a file, even when you use the permanently delete option, that file can still be recovered. To learn why, read: What happens to deleted files? Why can you recover some of them?
1. Delete or permanently delete files using keyboard shortcuts
The simplest way to delete a file or a group of files is to open File Explorer and navigate to its location. Find the file that you want to delete, and click or tap on it to select it. You can select more than one file by pressing the CTRL key and keeping it pressed. With the mouse, click the files that you want to select. Release the CTRL key when done.
TIP: To select all files in a folder, press CTRL+A on your keyboard.
To delete the selected file(s) and move it (them) to the Recycle Bin, press the Delete key on your keyboard.
By default, Windows 10 does not ask for a confirmation when you remove files, but if your Recycle Bin is configured to display a delete confirmation dialog, confirm the process by pressing Yes.
To delete the selected file(s) without moving to the Recycle Bin, press SHIFT+Delete on your keyboard.
This action permanently deletes the selected file(s), and Windows 10 asks for confirmation before it goes ahead with the removal. When you are asked "Are you sure you want to permanently delete this file?", press Yes.
The file is gone from your Windows 10 PC, without being moved to the Recycle Bin. It can be recovered only with specialized software like Recuva.
2. Delete files using the right-click menu
Another method involves selecting the file(s) that you want to delete in File Explorer and right-clicking (or pressing and holding) the selected item(s). In the contextual menu, choose Delete.
This action moves the selected file(s) to the Recycle Bin, from which they can be recovered, if needed. It does not permanently delete files as other methods do.
3. Delete or permanently delete files from File Explorer's ribbon
You can also browse to the files that you want to delete in File Explorer and select them. Then, click or tap the Home tab on the ribbon, and then the Delete button. This action removes the selected item(s) and moves them to the Recycle Bin.
If you want to delete a file permanently, select it. In the Home tab on the ribbon, instead of clicking Delete, click the arrow beneath the Delete button and then choose "Permanently delete."
4. Permanently delete files using PowerShell or Command Prompt
Windows 10 has a command that you can use to permanently delete files, and it can be used both in PowerShell and Command Prompt. Depending on what you prefer, start the Command Prompt or open PowerShell. Then, enter the command: del "path to file".
For example, to delete the sample.jpg file found on the D: drive, in the Digital Citizen folder, we typed: del "D:\Digital Citizen\sample.jpg".
Press Enter to execute the command, and the file is deleted without any confirmation being required. As documented by Microsoft here, this command can be used with several parameters. The most interesting is /f, which forces the deletion even when dealing with a read-only file that normally cannot be deleted. To use this parameter, type in: del /f "path to file".
Don't forget to press Enter to execute the command.
NOTE: When using the command-line to delete files, they are not moved to Recycle Bin.
5. Permanently delete files using specialized software
If you want to remove files from your Windows 10 PC so that they cannot be recovered with specialized file recovery tools, it is a good idea to remove them using apps that are permanent file erasers. Eraser is an excellent app for this purpose, and it works on any PC or device running Windows.
You can also find similar apps in this article: 8 best free data erasing apps that permanently delete your files and folders.
Problems when deleting files: File In Use
When deleting a file, you may encounter an error that says: "File In Use. This action can't be completed because the file is open in…" followed by an app's name. If you Try Again, you hit the same error over and over.
To solve this problem, you have to close the app mentioned by the error message. That app uses the file that you want to remove and keeps it open for editing. In this state, the file cannot be deleted. After the app is closed, and it no longer uses the file, the deletion process works.
If closing the app doesn't lead to the expected result, restart Windows 10 and try again.
Which method do you prefer for deleting files from Windows 10?
Now you know how to delete files using the keyboard, the mouse, and even specialized software or commands in PowerShell. Before closing this guide, let us know which method you prefer and why. Are you a keyboard user? Do you prefer to use the mouse? Or maybe the del command? Comment below and let's discuss the best way to remove files from Windows 10.