

If necessary, arrange the Finder window so that a portion of the Terminal window is still visible. Double-click the Trash icon in the Dock to reveal the contents of the Trash. Rm via inode number $ cd delete_dir/npm/cache/content-v2/sha512/18/ Type one space (not pictured) after nouchg in the line above, so that it ends in 'nouchg '. Rm: delete_dir/npm/cache: Directory not empty Rm: delete_dir/npm/cache/content-v2: Directory not empty Emptying trash on Mac is quite troublesome at times, because some files are locked. Rm: delete_dir/npm/cache/content-v2/sha512: Directory not empty

Rm: delete_dir/npm/cache/content-v2/sha512/18: Directory not empty Rm: delete_dir/npm/cache/content-v2/sha512/18/del: Directory not empty These are some of the commands used so far for trying to delete the directory: I have tried several methods such as moving it to the Trash -> Empty Trash, via the command sudo rm -rf, restarting the computer in diagnostic mode and checking the disk with Disk Utility. Open Terminal you should be able to find this using Spotlight Search or in Utilities > Terminal. Enter sudo rm R (Do not hit enter and make sure you copy it correctly with the correct spaces).The after restarting, you can empty Trash via terminal on Mac, or follow the steps below.fter restarting Mac, launch the Terminal via spotlight and follow these steps to empty trash Mac: How Do I. Entering the wrong command could clear out a lot more than the Trash on a Mac. Press Control + click on the Trash icon to open. With this option, you need to be careful. The files disappear after using the sudo terminal command and the trash icon/folder is empty but when i attempt to empty the trash they show back up. The files are supposedly in use by finder.
#Force empty trash mac terminal sudo windows
You can utilize the following five methods to force-empty the Trash on a Mac. I have some system files from a friends windows computer that my external auto backed up. Drag and drop them into the Terminal window. Open Trash from the Dock and then select all the files and folders. Please note that there’s a space after the letter R.
#Force empty trash mac terminal sudo how to
Whatever the cause, learning how to force empty Trash on a Mac is simple if you perform it the right way. You can force empty Trash Mac by using the Terminal when your Trash can’t be emptied using the ways above. If you are using a higher version such as El Capitan or Sierra, follow through: Keyboard Shortcuts: Before using the terminal, you can use force empty Mac Trash bin with shortcuts. I would like to know how to delete a directory on my MacBook. There is another way to force empty Bin Mac users will love Terminal. 5 Correct Methods to Force Empty Macs Trash. Note: For older versions, you can force the items in the trash bin to delete permanently by using sudo Ek-rf /.Trash/.
