Why the hell can't I delete that folder?

The other day I heard a coworker cussing about the fact he couldn’t delete a folder. To give him credit, he dual boots Linux and Windows, and has just recently realized Windows is much better. But, Windows doesn’t have sudo rm -f (ignoring chattr +i which I didn’t know about until today).

The problem is easy to solve though.

  • Search for the path of the folder, and you see the process/executable holding onto the file.