An NSX segment cannot be deleted after the network was previously extended with VMware HCX Network Extension. The HCX environment has since been decommissioned, and the HCX appliances no longer exist. One or more orphaned logical ports remain attached to the segment and block its removal.
In the NSX UI, the affected segment shows a remaining logical port that uses the HCX network-extension naming prefix (for example, a port name beginning with Infra-hcx-ne-). The port shows Admin Status Up and Operational Status Up, with an attachment to a Logical Router (LR). No virtual machine ports are present on the segment.
Deleting the segment fails while the port remains attached. The delete may also return the following error, even when no virtual machines are connected:
Disconnect all VMs and VIFs before deleting a segment.
This differs from a standard stale logical port, which typically shows Operational Status Down in Manager view after a virtual machine is detached.
HCX Network Extension creates a logical port on the NSX segment to bridge the extended Layer 2 network. When the HCX environment is removed without first unextending the networks from HCX Manager — for example, when the HCX appliances or service mesh are deleted while unreachable — the network-extension logical port is left behind on the segment.
NSX does not automatically remove these orphaned ports. While the port remains attached, the segment reports active ports and cannot be deleted. If the segment is still connected to a Tier-1 gateway, the associated LogicalRouterPort keeps the port Operational Status Up even when no virtual machine traffic is present
Remove the orphaned logical port and then delete the segment. Detaching the segment from its Tier-1 gateway clears the LogicalRouterPort that holds the port Operational Status Up, allowing the segment to reach a zero-port state. Repeat the procedure for each affected segment.
If the issue persists after these steps, contact Broadcom Support for further assistance.