How to get rid of ghost devices?

See this thread for help. Holding the shift key while clicking Remove sometimes helps: