VMware vSphere ESXi
VMware vCenter Server
Although all resources (VMs, VM templates, and VMkernel adapters) have been successfully moved out of the ESXi host, a physical network adapter (vmnic) on the ESXi host remains assigned as an uplink to the vSphere Distributed Switch (vDS).
vCenter Server locks the host object and prevents inventory removal while physical adapter is still actively bound to the distributed switch fabric.
To properly remove/decommission the ESXi host from the vCenter inventory, please follow the below steps:
esxcfg-vswitch -l to confirm the vmnic is no longer assigned as an uplink to the vDS.