Change net of track

Hi guys,

I am revising a pcb and i keep everything when importing the netlist.
The problem is that some nets changed, for example i have another fet with another pinout so i was like lets just swap the pin and done.
But Kicad now shows the track in 2 parts, the new net: first part of the track, and the old net: second part of the track.

Instead of removing the second part of the track and redrawing this can i just change the net of that part of the track?

I have not tried this myself but you could try to remove a short piece of the track and rerun drc. If i understand the function of the drc correctly this might rename the track.
(Remove a short piece where it connects to the wrong pin.)

Tried it, does not work. Probably should unconnect them before net import.
Lets try that…

What about “Rebuild board connectivity” in the Netlist dialog?

Yes, that work, disconnect the pins and re-import netlist fixes the track netname
Rebuild connectivity does not work.