I develop Java code with Eclipse and regularly get this message:
resource is out of sync with the filesystem.
Right-click > Refr
If this occurs trying to delete a folder (on *nix) and Refresh does not help, open a terminal and look for a symlink below the folder you are trying to delete and remove this manually. This solved my issues.