How to Delete Locked Items in your Mac Trash

If your Mac OS X trash contain any locked files, it won’t allow you to empty trash and provide error message like “The operation could not be completed because the item ‘( file name)’ is locked” Or “There are some locked items in the Trash”.
Delete Locked items in trash 
Press and hold the Option key while selecting Empty Trash option.
How to unlock any Files or Folders in Mac OS X

  1. Right click the file and select “Get Info” option.Mac osx locked option
  2. Deselect the check box name “Locked”.
  3. Now try to delete the file.

If you want to unlock folder, then

  1. Open Terminal app from (/Applications/Utilities) folder.
  2. Type this command followed by a space: sudo chflags -R nouchg
  3. Drag  and drop the particular folder you need to unlock into the Terminal window.
  4. Click Return.
  5. Enter the password and click Return.
Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts