Posted on 03-15-2017 12:34 PM
I know you used to be able to run a simple rm -r (user)/.Trash command to empty the trash, but that doesn't seem to be the case in El Capitan and newer - you're supposed to drag all the files in the Trash to the terminal window and then run the command.
Is there some way to automate that process so I could include it in a general first aid Self Service policy?
Solved! Go to Solution.
Posted on 03-15-2017 12:39 PM
It should work if you do:
rm -R /Users/username/.Trash/*
The *
wildcard tells it to match any files in the user's hidden trash directory. If that doesn't work, post back. I can't imagine it won't work though.
Posted on 03-15-2017 12:39 PM
It should work if you do:
rm -R /Users/username/.Trash/*
The *
wildcard tells it to match any files in the user's hidden trash directory. If that doesn't work, post back. I can't imagine it won't work though.
Posted on 03-15-2017 12:51 PM
That's a bingo!
Posted on 03-16-2017 07:14 AM
@duffcalifornia I'm curious to know what the scenario is where you'd want to delete everything in a User's trash.
Posted on 03-20-2017 11:00 AM
Does not work in El Cap or Sierra.
Some files when deleted are in the trash but are not listed in the .Trash directory or it's sub directories anymore.
For example, here is a file that i just dragged to the trash and it's location:
/Users/robertbasil/Library/Mobile Documents/com~apple~CloudDocs/.Trash/1Password-6.3.1.zip