MacOSX - Force delete stubborn files

Ask a question
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.
Jean-François Pillou

Jean-François Pillou - Founder of CCM
Better known as Jeff, Jean-François Pillou is the founder of He is also CEO of CCM Benchmark and digital director at the Figaro Group.

Learn more about the CCM team