![mac empty trash command line mac empty trash command line](https://9to5mac.com/wp-content/uploads/sites/6/2018/06/how-to-delete-mac-apps-6.png)
Questions? Comments? Have a fix? Post them below orīe sure to check us out on Twitter and the CNET Mac forums. If you wish to avoid using the Terminal, your best bet is to use a third-party utility, such as TrashIt!, which will invoke similar functions to clear and rebuild the Trash folders, without you needing to type or copy any commands. Even though you can reveal them in the Finder, attempting to delete the ".Trashes" folders at the root of your hard drives will result in an error, and deleting the one in your home folder will attempt to recursively move it into itself, and ultimately get you nowhere. Unfortunately, attempting to remove the Trash folders via the Finder cannot be done. These two commands will be the quickest way to clear and rebuild the trash folders on your Mac, provided you do not have any third-party tools however, some may be intimidated by the Terminal and wish to use the a graphical interface. then enter rm -rf and drag the folder from trash to the terminal once more. I had a years BU so it took almost an hour to finish resetting permissions. Then enter chflags -R nouchg and again, drag the folder from the trash to terminal. These can be copied and pasted, one line at a time, to the Terminal, but since they recursively target specific folders, be sure to use this exact syntax to avoid any problems: enter cd and drag the folder from the trash to terminal. The first is to use the Terminal (in the Applications > Utilities folder), which can be done by running the following two commands. There are two ways to remove this folder. Each user has their ownT ras h directory. The first thing you need to know is that there are several Trashes. However, if such behavior happens for files on a locally attached drive, you can go about fixing the issue by locating and removing the hidden trash folders (one in your account, and the other at the root of each locally mounted volume on the system), so the system will rebuild it with proper access permissions the next time you place an item in the trash. The rm Command Has No Safety Net If you put something in the macOS Trash, you can later drag it back out, up until the moment you choose Finder > Empty. The rm command lets you empty the Trash easily. Note that there is no trash support for networked volumes, so deleting items from them will result in their immediate removal. This should in most cases empty the trash completely, but if you are experiencing more severe problems, the trash may still remain full, or won't allow you to add items to it (they may be deleted immediately). If you decide to empty the trash in OS X, and end up getting an error or otherwise not seeing the contents delete, first try holding the Option key when emptying, which will invoke the OS X Force Empty feature, bypassing things like file locks and removing any file you have in the Trash. Often this occurs because of access permission faults with the hidden trash folder that OS X uses as an intermediary for storing trashed files before they are finally deletes, but at other times it occurs from built-in restrictions like having locked files in the trash. There are several reasons why the trash bin in OS X will not empty, or will not otherwise work as expected.