Theodore Baschak

Routing Guru. IPv6 Advocate. Operator of Hextet Systems (AS395089).

Removing Stubborn Trash Items

Fri, 12 Jun 2015 00:31:06 -0500 » CLI, Nerd Projects, System Administration, Troubleshooting, OS X » Estimated read time: 1 min

For one reason or another, I recently ended up with a draft blog post stuck in my OS X Yosemite Trash. I have no idea how this happened, but after reading 5 or 6 blogs and forum posts I was thoroughly frustrated with trying to find “the Mac Way”, and fired up the CLI:

cd ~/.Trash
sudo chflags -R nouchg <filename>
sudo rm -f <filename>
echo w00t

Sometimes it is just best to follow your gut, in this case just using the CLI to resolve the issue.