Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
Best way to force empty trash?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="V6Pony" data-source="post: 1424168" data-attributes="member: 177295"><p>I wrote a little file to empty the trash. Seems a bit silly but seems to work good for me. Created a file called etrash. Added /Users/xxxxxx to PATH in /etc. I have to enter sudo password when it runs. But I just type the name and the file runs.</p><p></p><p>#!/bin/bash</p><p>#script to empty the trash folder</p><p></p><p>clear</p><p>echo "I'm going to empty the Trash Folder "</p><p>echo ""</p><p>echo ""</p><p>sudo rm -Rfv ~/.Trash/*</p><p>echo ""</p><p>echo ""</p><p>echo "All done"</p><p>echo ""</p><p>echo "Later Dude"</p><p>echo ""</p><p>echo ""</p><p>echo ""</p></blockquote><p></p>
[QUOTE="V6Pony, post: 1424168, member: 177295"] I wrote a little file to empty the trash. Seems a bit silly but seems to work good for me. Created a file called etrash. Added /Users/xxxxxx to PATH in /etc. I have to enter sudo password when it runs. But I just type the name and the file runs. #!/bin/bash #script to empty the trash folder clear echo "I'm going to empty the Trash Folder " echo "" echo "" sudo rm -Rfv ~/.Trash/* echo "" echo "" echo "All done" echo "" echo "Later Dude" echo "" echo "" echo "" [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
Best way to force empty trash?
Top