MacOSX - Force delete stubborn files

October 2016

Sometimes you may want to empty the trash folder, but still the files or folders you want to delete refuse to disappear. To solve this problem, use a UNIX command to be entered in a Terminal. Note: do not forget to drag the files to the end of the command.

Replace "*" by spaces. The uppercase "R" is vital. It deletes files and folders.Don't enter the quotes.
  • Launch the Terminal
  • Type "sudo*rm*-R*"
  • Drag the files you want to delete files after this command
  • Confirm
  • Give an Administrator password
  • Confirm

For more information about the "rm" command, type "man rm" in the Terminal.
<space> to scroll.
<q> to quit.

Related :

This document entitled « MacOSX - Force delete stubborn files » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.