Andy Jarrett // Code. Develop. Create.

Deleting locked folders from Trash on OSX

I've recently had a stubborn folder in my Trash which I haven't been able to delete for ages due to an getting the following error message.
"The operation could not be completed because the item '{folder name here}' is locked."
After a little digging on the Apple site I've found this (and it's now here for my future reference too)
  1. Open Terminal (/Applications/Utilities).
  2. Type this, followed by a space: sudo chflags -R nouchg
  3. Drag the folder you would like to unlock into the Terminal window.
  4. Press Return.
  5. Enter your password and press Return.
For further info check out http://docs.info.apple.com/article.html?artnum=106237

I’m here, learning and working away. If you liked this content and want to keep me going, consider buying me a coffee. Your support keeps this site running and the coffee brewing! ☕️