Delete files from Mac OSX desktop

Sometimes I get this bug that some odd files will show up on my Mac OSX Desktop and that no matter what I can’t delete.

I solve it by:
1-Open Activity Monitor (Applications->Utilities)
2-Search for Finder (Process Name Column)
3-Click it and Press Force Quit

If Finder doesn’t restart on it’s own, click the icon or restart.

Hope it helps