Override Locked File Deletion On Apple

Don’t you hate it when you try to Trash files and/or folders from your Mac and the system says the files and folder contents are Locked, therefore you are screwed? I don’t know what Doofus decided this wasn’t an appropriate place to allow an Admin Override option with authentication, but Apple does has a Microsoft sense of humor.

Fortunately, there’s a simple and easy way to get this job done using the Terminal. You need to have the Administrator Password since you will issue a SUDO command, but that’s about it. Once you complete this task below, you can proceed with the usual send-to-trash operation and everything that was previously Locked will delete without issue.

If the item you are trying to unlock is a folder,use these steps:

  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.