Deleting USB devices in Windows

How to delete USB devices (serial port instances) that are no longer connected on Windows

In a command prompt, type:

set devmgr_show_nonpresent_devices=1

start devmgmt.msc

View -> Show Hidden Devices