Remove a device
When a Device is disconnected, it is removed from the system. A notification appears for InputDeviceChange.Removed (sent with InputSystem.onDeviceChange) and the Devices are removed from the devices list. The system also calls InputDevice.OnRemoved.
The InputDevice.added flag is reset to false in the process.
Note that Devices are not destroyed when removed. Device instances remain valid and you can still access them in code. However, trying to read values from the controls of these Devices leads to exceptions.