Unable to Delete file from Trash


In Mac OS X, when you empty your Trash there is still at least one file left over.

If you try to rename the file you get the following message:
“The operation could not be completed.
An unexpected error occurred (error code -43).”

  • Attempting to delete or rename the file from a Terminal in Mac OS X may give you the message “File name too long”.
  • Attempting to delete or rename the file in Windows may give you the message “Cannot delete file: The filename you specified is invalid or too long.”


This can happen when using a drive on both Mac OS X and Windows. The exact cause is unknown.


  1. Drag the file onto a USB or External Hard Drive.
  2. Connect the drive to a computer running Windows (Parallels Desktop and BootCamp are fine).
  3. Open a Command Prompt as an Administrator.
  4. Type “chkdsk F: /r” and press Enter (where F is the letter of the drive).
  5. Once the process is complete it should have removed the file. You can then close the Command Prompt window.

1 comment

Leave a comment

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