When attempting to remove an Edge node from a cluster, the following error is displayed:
VMware NSX
The Edge node cannot be removed because Logical DHCP Servers are still pinned to the Edge node.
Even if logical routers are evacuated and the Edge is placed in maintenance mode, DHCP references prevent node removal.
Steps to Resolve
Validate DHCP Dependency
SSH to the Edge node being deleted.
Run: get dhcp leases
Confirm if any active leases exist.
Relocate DHCP Servers
Navigate to Networking → Network Profiles → DHCP.
Enable Standby Relocation for the DHCP server.
Note: Relocation may take up to 30 minutes. More info on this here Remove NSX Edge Nodes from an Edge Cluster
If the service does not get relocated automatically manually relocate the service in the cluster.
Retry Edge Removal
Once DHCP services are moved, attempt to remove the Edge node from the cluster.