如果您在删除Mac上的废纸篓(Trash)中的所有文件时遇到问题,您需要强制清空这些Mac文件上的废纸篓。(Trash)它会强制删除文件,让您的Mac机器上有一个空的垃圾箱(Trash)应用程序。
有多种因素可能会导致您的垃圾箱(Trash)无法在Mac上清空。也许您的文件已被锁定(your files are locked),这阻止了您正在做的事情。或者,垃圾箱(Trash)中的文件可能存在其他问题,导致清空垃圾箱(Trash)的整个任务无法执行。
无论如何,您有几种方法可以解决您机器上的问题。您可以从最简单的开始,然后逐步增加更复杂的方法,直到找到适合您的方法。
退出正在使用该文件的应用程序(Quit The App That Was Using The File)
您无法清空Mac上的废纸篓(Trash)的原因之一是因为其中的一个文件正被您机器上的应用程序使用。您需要先关闭使用该文件的应用程序,(close the app that uses the file)然后才能清理Trash。
- 在任何屏幕上,按Command + Option + Esc键盘快捷键。
- 将出现一个框,列出您Mac(Mac)上当前打开的应用程序。单击(Click)您认为正在使用垃圾(Trash)文件的文件,然后单击“强制退出(Force Quit)”按钮。
应用程序关闭后,您将能够清空垃圾箱(Trash)。
在 Mac 上重新启动以强制清空垃圾箱(Restart To Force Empty Trash on Mac)
您可以尝试解决此问题的简单解决方案之一是重新启动您的Mac。建议您这样做的原因是重新启动计算机会关闭所有应用程序并清除RAM的内容。
如果这些元素中的任何一个阻止了垃圾箱被清空,那么重新启动您的Mac应该可以为您解决问题。此外,它操作简单快捷,不会对您的机器造成伤害。
- 单击(Click)左上角的Apple标志,然后选择(Apple)Restart。
- 当Mac重新启动时,右键单击Trash并选择Empty Trash。
使用安全模式在 Mac 上强制清空垃圾箱(Force Empty Trash on Mac Using The Safe Mode)
如果您仍然无法清空Mac OS X 垃圾箱(Mac OS X Trash)图标,则可能是有一个启动应用程序阻止了垃圾箱被清理。该应用程序在每次重新启动时启动,因此重新启动Mac也无助于解决问题。
在这种情况下,您最好的选择是使用Mac安全模式。它只会加载用于启动的基本文件。
- 重新启动 Mac 并在启动时按住Shift 键(Shift)。
- (Empty)像往常一样清空垃圾箱。(Trash)
在清空垃圾箱之前解锁文件(Unlock Files Before Emptying The Trash)
某些(Certain)锁定的文件可能会导致在Mac上强制清空废纸篓(Trash)的过程出现问题。由于这些文件已锁定,因此需要先将它们解锁,然后才能在清空Trash时将其删除。
(Locking and unlocking)在Mac上(Mac)锁定和解锁文件实际上非常容易,您可以按以下方式进行操作。
- 右键单击(Right-click)锁定的文件并选择Get Info。
- 取消选中显示已锁定(Locked)的框,文件将被解锁。
- (Empty)像往常一样清空垃圾箱(Trash),它会毫无问题地工作。
在垃圾箱中单独删除有问题的文件(Delete The Problematic Files Individually In The Trash)
一个或几个文件可能会导致您的整个垃圾箱(Trash)不为空。如果您遇到这种情况,您可能希望找到您认为有问题的文件并首先单独删除它们。
完成后,您可以立即清空整个垃圾箱。
- 单击垃圾箱(Trash)图标将其打开。
- 找到您认为有问题的文件,右键单击它,然后选择立即删除(Delete Immediately)。
使用终端在 Mac 上强制清空垃圾箱(Force Empty Trash on Mac Using Terminal)
在图形用户界面经常失败的地方,终端(Terminal)可以工作并为您完成工作。您也可以使用此命令行应用程序清空垃圾箱(Trash)。您可以在工具中使用一个命令来清理当前驻留在Mac上的垃圾箱(Trash)中的所有文件。
- 从 Mac 上的 Launchpad启动终端。(Terminal)
- 输入以下命令并按Enter。
sudo rm -rf ~/.Trash
- 由于它是 sudo 命令,因此系统会要求您输入密码。这样做并继续。
执行命令时,您的垃圾箱(Trash)将为空。
在 Mac 上安全清空垃圾箱(Securely Empty Trash on Mac)
在Mac上清空垃圾箱(Trash)时,您实际上有两种方法可以做到这一点。除了正常的右键单击和清空选项外,当您在Mac上打开“废纸篓(Trash)”时,您还有一个可见的选项。
您可以使用该选项安全地擦除(securely erase all the files)垃圾箱(Trash)中的所有文件。它应该可以解决阻止您清空Trash的问题。
- 在 Mac 上打开垃圾箱。(Trash)
- 单击顶部的Finder菜单,然后选择(Finder)Secure Empty Trash。
在 Mac 上使用第三方应用程序强制清空垃圾箱(Use a Third-Party App To Force Empty Trash on Mac)
在大多数情况下,默认方法应该可以为您解决问题,并且清空Trash(Trash)应该没有问题。但是,如果您无法使用这些方法中的任何一种,您可能需要查看第三方应用程序以查看是否有可用的方法。
实际上有一个名为Trash It 的免费应用程序可用!只需单击一下,您就可以清空Mac上的(Mac)废纸篓。(Trash)如果您不想立即清空垃圾箱(Trash),它还可以用于从Mac中删除单个文件。(Mac)
- 下载Trash It!Mac 上的应用程序。
- 打开应用程序,它会清空您的垃圾箱(Trash)。
这里的所有都是它的。
How to Force Empty Trash on Mac
If yоu’re facing issues getting rid of all the files in the Trash on your Mac, you’ll wаnt to force empty Trash оn those Mac files. It’ll fоrce the files to be deleted letting уou have an empty Trash app on your Maс machine.
There are various factors that may cause your Trash not to get emptied on a Mac. Maybe your files are locked and this is preventing you from what you’re doing. Or maybe there are other issues with the files in the Trash that prevent the entire task of emptying the Trash from being executed.
Regardless, you have several ways to get around the issue on your machine. You can start from the simplest and then work your way up with more complex ones until you find the method that works for you.
Quit The App That Was Using The File
One of the reasons why you can’t empty the Trash on your Mac is because one of the files in there is being used by an app on your machine. You’ll need to first close the app that uses the file and you’ll then be able to clean up the Trash.
- While on any screen, press the Command + Option + Esc keyboard shortcut.
- A box will appear listing the currently open apps on your Mac. Click on the one you think is using your Trash file and then hit the Force Quit button.
Once the app is closed, you’ll be able to empty the Trash.
Restart To Force Empty Trash on Mac
One of the simple solutions you can try to fix the issue is to reboot your Mac. The reason why you’re suggested to do it is that rebooting your machine closes all the apps and clears the contents of RAM.
If any of these elements were preventing the Trash from being emptied, rebooting your Mac should fix the issue for you. Also, it’s easy and quick to do and does no harm to your machine.
- Click on the Apple logo at the top-left corner and select Restart.
- When the Mac restarts, right-click on the Trash and select Empty Trash.
Force Empty Trash on Mac Using The Safe Mode
If you still can’t get your Mac OS X Trash icon to empty, it may be that there’s a startup app preventing the Trash from being cleaned up. The app launches at each reboot and so rebooting your Mac also doesn’t help in fixing the issue.
In this case, your best option is to use the Mac safe mode. It’ll only load the essential files for booting.
- Reboot your Mac and hold down Shift when it boots up.
- Empty the Trash as you would normally.
Unlock Files Before Emptying The Trash
Certain locked files may cause issues with the procedure to force empty Trash on your Mac. Since these files are locked, they need to be first unlocked before you can remove them when you empty the Trash.
Locking and unlocking files are actually pretty easy on a Mac and you can do it as the following.
- Right-click on the locked file and select Get Info.
- Untick the box that says Locked and the file will be unlocked.
- Empty the Trash as you would normally and it’ll work without any issues.
Delete The Problematic Files Individually In The Trash
A single or a few files may cause your entire Trash not to go empty. If this is the case with you, you might want to find the files that you think are problematic and first remove them individually.
Once that’s done, you can go ahead and empty the entire Trash at once.
- Click on the Trash icon to open it.
- Find the file you think is problematic, right-click on it, and select Delete Immediately.
- Do it until your issue is resolved.
Force Empty Trash on Mac Using Terminal
Where graphical user interfaces often fail, Terminal works and gets the job done for you. You can use this command line app to empty the Trash as well. There’s a command you can use in the tool that cleans up all the files currently residing in the Trash on your Mac.
- Launch Terminal from the Launchpad on your Mac.
- Type in the following command and hit Enter.
sudo rm -rf ~/.Trash
- Since it’s a sudo command, you’ll be asked to enter your password. Do so and continue.
When the command is executed, your Trash will be empty.
Securely Empty Trash on Mac
When it comes to emptying the Trash on Mac, you actually have two ways to do it. Other than the normal right-click and empty option, you have one more option that’s visible when you’ve opened the Trash on your Mac.
You can use the option to securely erase all the files in the Trash. It should fix the issue that prevents you from emptying your Trash.
- Open the Trash on your Mac.
- Click on the Finder menu at the top and select Secure Empty Trash.
Use a Third-Party App To Force Empty Trash on Mac
In most cases, the default methods should get the issue fixed for you and you should have no issues emptying the Trash. However, if you haven’t been able to get any of those methods to work, you might want to look into third-party apps to see if something’s available.
There’s actually a free app available called Trash It! that lets you empty the Trash on your Mac with a single-click. It can also be used to delete individual files from your Mac if emptying the Trash is not what you want to do straightaway.
- Download the Trash It! app on your Mac.
- Open the app and it’ll empty your Trash.
That’s all there is to it.