remove links and publish all ports