![]() Test: Locked file on the desktop, move to trash. This was hacked together late last night on a whim with no coffee. The most current version that I'll be tweaking will be at Github: Here are two solutions below which you can try to force empty the Trash on Mac: use Macs Terminal or restart your Mac in Safe Mode. So yes, you will get that auth dialog, you'll key in your admin password (you're on the sudo'ers list, right?), then feel remorse as that file is never coming back. Note: While the software is classified as free, it is actually donationware. That's just how Unix (even in OSX) works. BatChmod allows you to change any specific privilege or ownership without affecting the others (ie, changing the group without affecting the owner, or adding or removing a specific privilege without affecting all the others). Force empty Trash on Mac when data are in use or locked Part 4. This script will work on locked and busy files, which is why you'd force empty the trash, right? You've been warned.įor any sudo command, you MUST put it into an NS and not a background OSA script because you have to enter your admin password ONCE for every sudo session. Part 2: How to permanently empty Trash on Mac Part 3. ![]() In the menu bar at the top of the screen, click the Finder menu, and select Preferences. Select the last volume on the disk you're trying to repair, click on First Aid, and hit Run. Choose View from the menu bar in Disk Utility Show All Devices. ![]() Step 2: In the terminal type in: sudo rm -rf. To detect and repair minor disk errors, use First Aid in Disk Utility: Open Disk Utility from Application in Finder. It’s in your Applications > Utilities folder, or you can quickly bring it up through Spotlight search on the top right of the menu bar. I've modified Sebbo's commands as you might need the Apple System Logs, and put it into an NSAppleScript command. First, switch to Finder by clicking on the Mac desktop. Sometimes Mac Trash won’t empty because of the hard drive problems. Enter the following command into terminal without hitting Enter afterward. Double-click your Mac trash bin icon in the application dock. Use Spotlight to find and launch Terminal on your Mac. If you want to delete a chosen item in the Trash folder, click on it, then select 'Empty Trash'. The script doesn't work because you MUST enter a password to sudo. How to force the trash to empty on a Mac using Terminal. On the message popup, click on the 'Empty Trash' button.
0 Comments
Leave a Reply. |