When interface is down, we have two contradicting requirements: one is to show what was connected to that interface before it went down, and other is to show actual connectivity. First requires to keep showing link between disconnected interfaces, second requires to delete that link immediately after interface goes down. As NetXMS server has no way of knowing if disconnect is permanent or temporary, and there are seems to be more requests to provide access to last known connection information, NetXMS server keeps that connection until it will know that topology was changed (for example, one of previously connected interfaces will go up and LLDP will report different peer).
One possible solution could be configurable topology expiration time - i.e. if interface is down for N days, remove any known topology information from it.
Currently as a workaround you can delete interface that is disconnected - configuration poll will find it and re-create, but peer information will be erased.
Best regards,
Victor